fix(partitioning,network): swapon idempotency, DNS search domains, tune2fs changed_when
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
tune2fs -O "^orphan_file,^metadata_csum_seed"
|
||||
"{{ install_drive }}{{ partitioning_boot_fs_partition_suffix }}"
|
||||
register: partitioning_boot_ext4_tune_result
|
||||
changed_when: partitioning_boot_ext4_tune_result.rc == 0
|
||||
changed_when: false
|
||||
|
||||
- name: Create swap filesystem
|
||||
when:
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Mount filesystems
|
||||
block:
|
||||
# CIS mode: mount all paths (separate partitions for /home, /var, etc.)
|
||||
# Non-CIS btrfs: only mount subvolume paths (/home, /var/log, /var/cache/pacman/pkg)
|
||||
# Non-CIS LVM: skip CIS-only paths (/home, /var, /var/log, /var/log/audit, /var/cache/pacman/pkg)
|
||||
- name: Mount filesystems and subvolumes
|
||||
when:
|
||||
- >-
|
||||
@@ -121,4 +124,6 @@
|
||||
{{ 'swapon /mnt/swap/swapfile' if system_cfg.filesystem == 'btrfs' else 'swapon -U ' + partitioning_uuid_swap[0] }}
|
||||
ansible.builtin.command: "{{ partitioning_swap_cmd }}"
|
||||
register: partitioning_swap_activate_result
|
||||
# swapon returns 255 if swap is already active
|
||||
failed_when: partitioning_swap_activate_result.rc not in [0, 255]
|
||||
changed_when: partitioning_swap_activate_result.rc == 0
|
||||
|
||||
Reference in New Issue
Block a user