unfi VM
Some checks failed
Infrastructure / Check and run Ansbile playbooks (push) Failing after 7m25s
Some checks failed
Infrastructure / Check and run Ansbile playbooks (push) Failing after 7m25s
This commit is contained in:
24
infra/unifi/0001_initialise_playbook.yaml
Normal file
24
infra/unifi/0001_initialise_playbook.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
- 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
|
Reference in New Issue
Block a user