Skip to content

Commit

Permalink
Improve bigboot role when called in check mode (#78)
Browse files Browse the repository at this point in the history
* Improve bigboot role when called in check mode

* Remove erroneous blank line

* Add change fragment for changelog
  • Loading branch information
rjo-uk authored Sep 12, 2024
1 parent 3fdb912 commit 8be3a0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/78-improve-bigboot-check-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Support check mode when using the bigboot role
1 change: 1 addition & 0 deletions roles/bigboot/tasks/do_bigboot_reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@
Boot filesystem size is now
{{ bigboot_boot_fs_new_size | int | human_readable }}
({{ (bigboot_boot_fs_new_size | int - bigboot_boot_fs_original_size | int) | human_readable }} increase)
when: not ansible_check_mode
1 change: 1 addition & 0 deletions roles/bigboot/tasks/prep_lvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
-o vg_extent_size {{ bigboot_next_partition_vg }}
changed_when: false
register: vg_extent_size
check_mode: false

- name: Align bigboot increase to extent size
ansible.builtin.set_fact:
Expand Down
1 change: 1 addition & 0 deletions roles/initramfs/tasks/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
cmd: /sbin/grubby --default-kernel
register: initramfs_grubby_rc
changed_when: false
check_mode: false

- name: Parse default kernel version
ansible.builtin.set_fact:
Expand Down

0 comments on commit 8be3a0e

Please sign in to comment.