Skip to content
Snippets Groups Projects
Verified Commit 99d1e82f authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add proxmox playbook

parent e967b306
No related branches found
No related tags found
No related merge requests found
.idea
.venv
# autogenerated
.template
[defaults]
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
inventory = inventory.yaml
[ssh_connection]
ssh_args = -o StrictHostKeyChecking=accept-new
#!/usr/bin/env bash
# This script creates a Python env, enters it and installs
# ansible and requirements from the requirements.galaxy.yaml
[[ ! -d .venv ]] && python3 -m venv .venv
source .venv/bin/activate
pip3 install ansible ansible-lint
ansible-galaxy install "$1" -r requirements.galaxy.yaml
# to stay in our comfy virtualenv
exec "${SHELL:bash}"
all:
hosts:
# Use OpenSSH config to make it confortable
pve.internal.maze:
---
- hosts: all
become: no # Already root
vars_files:
- "vars/base.yaml"
tasks:
- name: Set authorized keys for root user
ansible.posix.authorized_key:
user: root
state: present
key: "{{ item }}"
loop: "{{ ssh_keys }}"
# Playbook vars
ssh_keys:
- https://git.sch.bme.hu/rlacko.keys
\ No newline at end of file
---
collections:
- community.general
- community.crypto
- ansible.posix
roles:
- src: git@git.sch.bme.hu:kszk/ansible/roles/base.git
scm: git
version: master
name: kszk.base
- src: git@git.sch.bme.hu:kszk/ansible/roles/iptables.git
scm: git
version: master
name: kszk.iptables
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment