kovalhome/infra/unifi/0001_initialise_playbook.yaml
Gleb Koval fcac9954f2
All checks were successful
Infrastructure / Check and run Ansbile playbooks (push) Successful in 2m13s
:-)
2024-07-13 18:03:08 +01:00

26 lines
565 B
YAML

- name: Initialise VM
hosts: unifi
gather_facts: false
tasks:
- name: Wait for connection
ansible.builtin.wait_for_connection:
timeout: 300
- name: Install system packages
ansible.builtin.apt:
update_cache: true
pkg:
- qemu-guest-agent
- parted
# For unifi
- ca-certificates
- curl
become: true
- name: Enable qemu-guest-agent
ansible.builtin.systemd:
name: qemu-guest-agent
state: started
enabled: true
become: true