mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-15 17:39:41 +01:00
fact_caching to file and qemu guest agent
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
# ---> Ansible
|
# ---> Ansible
|
||||||
*.retry
|
*.retry
|
||||||
|
facts/*
|
||||||
@@ -3,3 +3,5 @@ remote_user = simon
|
|||||||
inventory = hosts.yml
|
inventory = hosts.yml
|
||||||
vault_password_file = ~/.ansible/vault_pass.txt
|
vault_password_file = ~/.ansible/vault_pass.txt
|
||||||
private_key_file=~/.ssh/ansible
|
private_key_file=~/.ssh/ansible
|
||||||
|
fact_caching = jsonfile
|
||||||
|
fact_caching_connection = facts/
|
||||||
@@ -30,3 +30,15 @@
|
|||||||
|
|
||||||
- name: Install & Configure unattended upgrades
|
- name: Install & Configure unattended upgrades
|
||||||
ansible.builtin.import_tasks: unattended-upgrades.yml
|
ansible.builtin.import_tasks: unattended-upgrades.yml
|
||||||
|
|
||||||
|
- name: Install Quemu Guest Agent if virtualization type is kvm
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
state: latest
|
||||||
|
when: ansible_virtualization_type == 'kvm'
|
||||||
|
|
||||||
|
- name: Enable QEMU Guest Agent
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: qemu-guest-agent
|
||||||
|
enabled: true
|
||||||
|
when: ansible_virtualization_type == 'kvm'
|
||||||
Reference in New Issue
Block a user