Compare commits
2 Commits
a5e516aa91
...
415fc5a26b
| Author | SHA1 | Date | |
|---|---|---|---|
| 415fc5a26b | |||
| aaada3a826 |
@@ -3,9 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_alma_extra: >-
|
bootstrap_alma_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
)
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: "{{ item }}"
|
ansible.builtin.command: "{{ item }}"
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: >-
|
ansible.builtin.command: >-
|
||||||
pacstrap /mnt {{ bootstrap_archlinux_packages | join(' ') }} --asexplicit
|
pacstrap /mnt {{ bootstrap_archlinux_packages | reject('equalto', '') | join(' ') }} --asexplicit
|
||||||
register: bootstrap_result
|
register: bootstrap_result
|
||||||
changed_when: bootstrap_result.rc == 0
|
changed_when: bootstrap_result.rc == 0
|
||||||
|
|||||||
@@ -9,12 +9,13 @@
|
|||||||
}}
|
}}
|
||||||
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 | join(',') }}"
|
bootstrap_debian_base: "{{ bootstrap_debian_base_list | reject('equalto', '') | join(',') }}"
|
||||||
bootstrap_debian_extra: >-
|
bootstrap_debian_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
bootstrap_debian_extra_list
|
bootstrap_debian_extra_list
|
||||||
)
|
)
|
||||||
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: "{{ item }}"
|
ansible.builtin.command: "{{ item }}"
|
||||||
|
|||||||
@@ -3,9 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_fedora_extra: >-
|
bootstrap_fedora_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
)
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: "{{ item }}"
|
ansible.builtin.command: "{{ item }}"
|
||||||
|
|||||||
@@ -55,9 +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)
|
||||||
)
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: >-
|
ansible.builtin.command: >-
|
||||||
|
|||||||
@@ -3,9 +3,8 @@
|
|||||||
vars:
|
vars:
|
||||||
bootstrap_rocky_extra: >-
|
bootstrap_rocky_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
|
||||||
lookup('vars', bootstrap_var_key)
|
lookup('vars', bootstrap_var_key)
|
||||||
)
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: "{{ item }}"
|
ansible.builtin.command: "{{ item }}"
|
||||||
|
|||||||
@@ -5,12 +5,13 @@
|
|||||||
{{ '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 | join(',') }}"
|
bootstrap_ubuntu_base: "{{ bootstrap_ubuntu_base_list | reject('equalto', '') | join(',') }}"
|
||||||
bootstrap_ubuntu_extra: >-
|
bootstrap_ubuntu_extra: >-
|
||||||
{{
|
{{
|
||||||
(
|
(
|
||||||
bootstrap_ubuntu_extra_list
|
bootstrap_ubuntu_extra_list
|
||||||
)
|
)
|
||||||
|
| reject('equalto', '')
|
||||||
| join(' ')
|
| join(' ')
|
||||||
}}
|
}}
|
||||||
ansible.builtin.command: "{{ item }}"
|
ansible.builtin.command: "{{ item }}"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: Configure grub
|
- name: Configure grub defaults
|
||||||
when: not is_rhel | default(false)
|
when: not is_rhel | default(false)
|
||||||
block:
|
|
||||||
- name: Add commandline information to grub config
|
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
dest: /mnt/etc/default/grub
|
dest: /mnt/etc/default/grub
|
||||||
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT=
|
regexp: "{{ item.regexp }}"
|
||||||
|
line: "{{ item.line }}"
|
||||||
|
loop:
|
||||||
|
- regexp: ^GRUB_CMDLINE_LINUX_DEFAULT=
|
||||||
line: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
|
line: GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
|
||||||
|
- regexp: ^GRUB_TIMEOUT=
|
||||||
- name: Change Grub time
|
|
||||||
ansible.builtin.lineinfile:
|
|
||||||
dest: /mnt/etc/default/grub
|
|
||||||
regexp: ^GRUB_TIMEOUT=
|
|
||||||
line: GRUB_TIMEOUT=1
|
line: GRUB_TIMEOUT=1
|
||||||
|
|
||||||
- name: Ensure grub defaults file exists for RHEL-based systems
|
- name: Ensure grub defaults file exists for RHEL-based systems
|
||||||
@@ -70,7 +67,7 @@
|
|||||||
dest: /mnt/etc/default/grub
|
dest: /mnt/etc/default/grub
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
content: |
|
content: |
|
||||||
GRUB_TIMEOUT=5
|
GRUB_TIMEOUT=1
|
||||||
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
|
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
|
||||||
GRUB_DEFAULT=saved
|
GRUB_DEFAULT=saved
|
||||||
GRUB_DISABLE_SUBMENU=true
|
GRUB_DISABLE_SUBMENU=true
|
||||||
@@ -107,3 +104,11 @@
|
|||||||
loop: "{{ configuration_grub_bls_entries.files }}"
|
loop: "{{ configuration_grub_bls_entries.files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
|
- name: Enable GRUB cryptodisk for encrypted /boot
|
||||||
|
when:
|
||||||
|
- partitioning_luks_enabled | default(luks_enabled | default(false)) | bool
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /mnt/etc/default/grub
|
||||||
|
regexp: '^GRUB_ENABLE_CRYPTODISK='
|
||||||
|
line: GRUB_ENABLE_CRYPTODISK=y
|
||||||
|
|||||||
Reference in New Issue
Block a user