netz39-infra-ansible/main.yml
Alexander Dahl 01c8d9d896 main: Install qemu-guest-agent on proxmox VMs
proxmox UI can show more VM specific information if qemu-guest-agent is
installed in guest VMs.
2022-07-23 10:39:27 +02:00

67 lines
1.4 KiB
YAML

---
- hosts: all
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
roles:
- role: ansible.timezone
tasks:
- name: Update and clean package cache
apt:
update_cache: true
cache_valid_time: 3600
autoclean: true
changed_when: false
- name: Ensure unattended-upgrades is installed and up to date
apt:
name: unattended-upgrades
state: present
- name: Setup unattended-upgrades
include_role:
name: ansible-role-unattended-upgrades
vars:
unattended_origins_patterns:
- "origin=Debian,archive=buster-security"
- "o=Debian,a=buster-updates"
unattended_package_blacklist: [cowsay]
unattended_mail: "root"
- name: Setup users
include_role:
name: users
- hosts: proxmox
become: true
tasks:
- name: Ensure qemu guest agent is installed on proxmox VMs
ansible.builtin.apt:
pkg: qemu-guest-agent
state: present
- name: Tau specific setup
import_playbook: tau.yml
- name: Pottwal specific setup
import_playbook: pottwal.yml
- name: Specific setup for host unicorn
import_playbook: unicorn.yml
- name: Platon specific setup
import_playbook: platon.yml
- name: Radon specific setup
import_playbook: radon.yml
- name: Krypton specific setup
import_playbook: krypton.yml
- name: Oganesson specific setup
import_playbook: oganesson.yml