refactor(partitioning): remove unused register variables

This commit is contained in:
2026-03-12 12:24:59 +01:00
committed by MORAWSKI Norbert
parent 67e3753ece
commit fc2d924349
5 changed files with 0 additions and 10 deletions

View File

@@ -86,7 +86,6 @@
device: "{{ configuration_luks_device }}" device: "{{ configuration_luks_device }}"
passphrase: "{{ configuration_luks_passphrase }}" passphrase: "{{ configuration_luks_passphrase }}"
new_keyfile: "/mnt{{ configuration_luks_keyfile_path }}" new_keyfile: "/mnt{{ configuration_luks_keyfile_path }}"
register: configuration_luks_addkey_retry
failed_when: false failed_when: false
no_log: true no_log: true

View File

@@ -24,7 +24,6 @@
ansible.builtin.command: >- ansible.builtin.command: >-
tune2fs -O "^orphan_file,^metadata_csum_seed" tune2fs -O "^orphan_file,^metadata_csum_seed"
"{{ install_drive }}{{ partitioning_part_sep }}{{ partitioning_boot_fs_partition_suffix }}" "{{ install_drive }}{{ partitioning_part_sep }}{{ partitioning_boot_fs_partition_suffix }}"
register: partitioning_boot_ext4_tune_result
changed_when: false changed_when: false
- name: Create swap filesystem - name: Create swap filesystem

View File

@@ -67,7 +67,6 @@
- "partprobe {{ install_drive }}" - "partprobe {{ install_drive }}"
- "blockdev --rereadpt {{ install_drive }}" - "blockdev --rereadpt {{ install_drive }}"
- "udevadm settle" - "udevadm settle"
register: partitioning_partprobe_result
changed_when: false changed_when: false
failed_when: false failed_when: false
@@ -93,7 +92,6 @@
- "partprobe {{ install_drive }}" - "partprobe {{ install_drive }}"
- "blockdev --rereadpt {{ install_drive }}" - "blockdev --rereadpt {{ install_drive }}"
- "udevadm settle" - "udevadm settle"
register: partitioning_partprobe_retry
changed_when: false changed_when: false
failed_when: false failed_when: false
@@ -116,6 +114,5 @@
loop: loop:
- "partprobe {{ install_drive }}" - "partprobe {{ install_drive }}"
- "udevadm settle" - "udevadm settle"
register: partitioning_partprobe_settle
changed_when: false changed_when: false
failed_when: false failed_when: false

View File

@@ -21,7 +21,6 @@
algorithm: "{{ system_cfg.luks.pbkdf }}" algorithm: "{{ system_cfg.luks.pbkdf }}"
iteration_time: "{{ (system_cfg.luks.iter | float) / 1000 }}" iteration_time: "{{ (system_cfg.luks.iter | float) / 1000 }}"
passphrase: "{{ system_cfg.luks.passphrase | string }}" passphrase: "{{ system_cfg.luks.passphrase | string }}"
register: partitioning_luks_format_result
no_log: true no_log: true
- name: Force-close LUKS mapper - name: Force-close LUKS mapper
@@ -51,7 +50,6 @@
name: "{{ system_cfg.luks.mapper }}" name: "{{ system_cfg.luks.mapper }}"
passphrase: "{{ system_cfg.luks.passphrase | string }}" passphrase: "{{ system_cfg.luks.passphrase | string }}"
allow_discards: "{{ 'discard' in (system_cfg.luks.options | lower) }}" allow_discards: "{{ 'discard' in (system_cfg.luks.options | lower) }}"
register: partitioning_luks_open_result
no_log: true no_log: true
rescue: rescue:
- name: Force-close stale LUKS mapper - name: Force-close stale LUKS mapper
@@ -79,7 +77,6 @@
name: "{{ system_cfg.luks.mapper }}" name: "{{ system_cfg.luks.mapper }}"
passphrase: "{{ system_cfg.luks.passphrase | string }}" passphrase: "{{ system_cfg.luks.passphrase | string }}"
allow_discards: "{{ 'discard' in (system_cfg.luks.options | lower) }}" allow_discards: "{{ 'discard' in (system_cfg.luks.options | lower) }}"
register: partitioning_luks_open_retry
no_log: true no_log: true
- name: Get LUKS UUID - name: Get LUKS UUID

View File

@@ -56,7 +56,6 @@
- { subvol: var_log_audit } - { subvol: var_log_audit }
loop_control: loop_control:
label: "{{ item.subvol }}" label: "{{ item.subvol }}"
register: partitioning_btrfs_subvol_result
- name: Set quotas for subvolumes - name: Set quotas for subvolumes
when: system_cfg.features.cis.enabled | bool when: system_cfg.features.cis.enabled | bool
@@ -74,7 +73,6 @@
btrfs filesystem mkswapfile --size {{ partitioning_swap_size_gb }}g --uuid clear /mnt/@swap/swapfile btrfs filesystem mkswapfile --size {{ partitioning_swap_size_gb }}g --uuid clear /mnt/@swap/swapfile
args: args:
creates: /mnt/@swap/swapfile creates: /mnt/@swap/swapfile
register: partitioning_btrfs_swap_result
- name: Unmount Partition - name: Unmount Partition
ansible.posix.mount: ansible.posix.mount: