Split bootstrap by OS
This commit is contained in:
15
roles/bootstrap/tasks/archlinux.yml
Normal file
15
roles/bootstrap/tasks/archlinux.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Bootstrap ArchLinux
|
||||
vars:
|
||||
bootstrap_archlinux_packages: >-
|
||||
{{
|
||||
(
|
||||
lookup('vars', bootstrap_var_key)
|
||||
| difference(bootstrap_guest_agent_remove_packages)
|
||||
)
|
||||
+ bootstrap_guest_agent_packages
|
||||
}}
|
||||
ansible.builtin.command: >-
|
||||
pacstrap /mnt {{ bootstrap_archlinux_packages | join(' ') }} --asexplicit
|
||||
register: bootstrap_result
|
||||
changed_when: bootstrap_result.rc == 0
|
||||
Reference in New Issue
Block a user