Condition LUKS and guest tools in bootstrap vars
This commit is contained in:
@@ -3,12 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_alma_extra: >-
|
bootstrap_alma_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
(
|
(
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
| difference(bootstrap_guest_agent_remove_packages)
|
|
||||||
)
|
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -3,11 +3,7 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_archlinux_packages: >-
|
bootstrap_archlinux_packages: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
| difference(bootstrap_guest_agent_remove_packages)
|
|
||||||
)
|
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: >-
|
ansible.builtin.command: >-
|
||||||
pacstrap /mnt {{ bootstrap_archlinux_packages | join(' ') }} --asexplicit
|
pacstrap /mnt {{ bootstrap_archlinux_packages | join(' ') }} --asexplicit
|
||||||
|
|||||||
@@ -9,12 +9,11 @@
|
|||||||
}}
|
}}
|
||||||
bootstrap_debian_base_list: "{{ lookup('vars', bootstrap_var_key).base | default([]) }}"
|
bootstrap_debian_base_list: "{{ lookup('vars', bootstrap_var_key).base | default([]) }}"
|
||||||
bootstrap_debian_extra_list: "{{ lookup('vars', bootstrap_var_key).extra | default([]) }}"
|
bootstrap_debian_extra_list: "{{ lookup('vars', bootstrap_var_key).extra | default([]) }}"
|
||||||
bootstrap_debian_base: "{{ (bootstrap_debian_base_list | difference(bootstrap_guest_agent_remove_packages)) | join(',') }}"
|
bootstrap_debian_base: "{{ bootstrap_debian_base_list | join(',') }}"
|
||||||
bootstrap_debian_extra: >-
|
bootstrap_debian_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
(bootstrap_debian_extra_list | difference(bootstrap_guest_agent_remove_packages))
|
bootstrap_debian_extra_list
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -3,12 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_fedora_extra: >-
|
bootstrap_fedora_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
(
|
(
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
| difference(bootstrap_guest_agent_remove_packages)
|
|
||||||
)
|
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -3,16 +3,6 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_os_key: "{{ os | lower }}"
|
bootstrap_os_key: "{{ os | lower }}"
|
||||||
bootstrap_var_key: "{{ 'bootstrap_' + (os | lower | replace('-', '_')) }}"
|
bootstrap_var_key: "{{ 'bootstrap_' + (os | lower | replace('-', '_')) }}"
|
||||||
bootstrap_hypervisor_key: "{{ hypervisor | default('none') | lower }}"
|
|
||||||
bootstrap_guest_agent_packages: >-
|
|
||||||
{{
|
|
||||||
['qemu-guest-agent'] if bootstrap_hypervisor_key in ['libvirt', 'proxmox']
|
|
||||||
else ['open-vm-tools'] if bootstrap_hypervisor_key == 'vmware'
|
|
||||||
else []
|
|
||||||
}}
|
|
||||||
bootstrap_guest_agent_remove_packages:
|
|
||||||
- open-vm-tools
|
|
||||||
- qemu-guest-agent
|
|
||||||
block:
|
block:
|
||||||
- name: Include AlmaLinux bootstrap tasks
|
- name: Include AlmaLinux bootstrap tasks
|
||||||
when: bootstrap_os_key == 'almalinux'
|
when: bootstrap_os_key == 'almalinux'
|
||||||
|
|||||||
@@ -55,12 +55,8 @@
|
|||||||
bootstrap_rhel_release: "{{ bootstrap_os_key | replace('rhel', '') }}"
|
bootstrap_rhel_release: "{{ bootstrap_os_key | replace('rhel', '') }}"
|
||||||
bootstrap_rhel_extra: >-
|
bootstrap_rhel_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
(
|
(
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
| difference(bootstrap_guest_agent_remove_packages)
|
|
||||||
)
|
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -3,12 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_rocky_extra: >-
|
bootstrap_rocky_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
(
|
(
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
| difference(bootstrap_guest_agent_remove_packages)
|
|
||||||
)
|
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -5,12 +5,11 @@
|
|||||||
{{ 'plucky' if bootstrap_os_key == 'ubuntu' else 'noble' }}
|
{{ 'plucky' if bootstrap_os_key == 'ubuntu' else 'noble' }}
|
||||||
bootstrap_ubuntu_base_list: "{{ lookup('vars', bootstrap_var_key).base | default([]) }}"
|
bootstrap_ubuntu_base_list: "{{ lookup('vars', bootstrap_var_key).base | default([]) }}"
|
||||||
bootstrap_ubuntu_extra_list: "{{ lookup('vars', bootstrap_var_key).extra | default([]) }}"
|
bootstrap_ubuntu_extra_list: "{{ lookup('vars', bootstrap_var_key).extra | default([]) }}"
|
||||||
bootstrap_ubuntu_base: "{{ (bootstrap_ubuntu_base_list | difference(bootstrap_guest_agent_remove_packages)) | join(',') }}"
|
bootstrap_ubuntu_base: "{{ bootstrap_ubuntu_base_list | join(',') }}"
|
||||||
bootstrap_ubuntu_extra: >-
|
bootstrap_ubuntu_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
(bootstrap_ubuntu_extra_list | difference(bootstrap_guest_agent_remove_packages))
|
bootstrap_ubuntu_extra_list
|
||||||
+ bootstrap_guest_agent_packages
|
|
||||||
)
|
)
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user