File tree Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ packages.
9494| ` common_grub_password ` | | If specified, ensure Grub password is set to this value. |
9595| ` common_grub_save_default ` | false | If ` true ` configure Grub to use the last used entry as default. |
9696| ` common_grub_timeout ` | 1 | Grub timeout to set. |
97+ | ` common_guest_incus ` | false | If ` true ` Install Incus guest agent. |
9798| ` common_guest_qemu ` | false | If ` true ` Install Qemu guest agent. |
9899| ` common_hostname ` | | If specified, set hostname. |
99100| ` common_journal_disk_max_size ` | | If specified, set systemd journal disk max size (` SystemMaxUse ` ). |
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ common_random_mac_wifi: random
3737common_random_mac_ethernet : stable
3838common_ssh_hardening : true
3939common_guest_qemu : false
40+ common_guest_incus : false
4041
4142# Internal values
4243_smtp_server : " [{{ common_mail_smtp_host }}]:{{ common_mail_smtp_port }}"
Original file line number Diff line number Diff line change 22
33- name : Ensure Qemu guest agent is installed
44 ansible.builtin.dnf :
5- state : present
5+ state : " {{common_guest_qemu | bool | ternary(' present', 'absent')}} "
66 name : qemu-guest-agent
77 install_weak_deps : false
88 retries : 10
99 delay : 1
1010 register : _
1111 until : _ is successful
12- when :
13- - common_guest_qemu | bool
14- - not (_ostree | bool)
12+ when : not (_ostree | bool)
1513
1614- name : Ensure Qemu guest agent is installed
1715 community.general.rpm_ostree_pkg :
18- state : present
16+ state : " {{common_guest_qemu | bool | ternary(' present', 'absent')}} "
1917 name : qemu-guest-agent
20- when :
21- - common_guest_qemu | bool
22- - _ostree | bool
18+ when : _ostree | bool
19+
20+ - name : Ensure Incus guest agent is installed
21+ ansible.builtin.dnf :
22+ state : " {{common_guest_incus | bool | ternary('present', 'absent')}}"
23+ name : incus-agent
24+ install_weak_deps : false
25+ retries : 10
26+ delay : 1
27+ register : _
28+ until : _ is successful
29+ when : not (_ostree | bool)
30+
31+ - name : Ensure Incus guest agent is installed
32+ community.general.rpm_ostree_pkg :
33+ state : " {{common_guest_incus | bool | ternary('present', 'absent')}}"
34+ name : incus-agent
35+ when : _ostree | bool
You can’t perform that action at this time.
0 commit comments