mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-13 08:17:30 +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
|
||||
*.retry
|
||||
|
||||
facts/*
|
||||
@@ -3,3 +3,5 @@ remote_user = simon
|
||||
inventory = hosts.yml
|
||||
vault_password_file = ~/.ansible/vault_pass.txt
|
||||
private_key_file=~/.ssh/ansible
|
||||
fact_caching = jsonfile
|
||||
fact_caching_connection = facts/
|
||||
@@ -29,4 +29,16 @@
|
||||
ansible.builtin.import_tasks: ssh-config.yml
|
||||
|
||||
- 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