Skip to content

Commit

Permalink
Prevent snapshot creation if newest installed kernel not in use (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjo-uk authored Jan 2, 2025
1 parent 07d5a9f commit c3df572
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Prevent snapshot creation when newest installed kernel is not in use
6 changes: 6 additions & 0 deletions roles/snapshot_create/tasks/check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Validate default kernel is booted
ansible.builtin.include_role:
name: initramfs
tasks_from: preflight
when: snapshot_create_boot_backup

- name: Verify that all volumes exist
ansible.builtin.include_tasks: verify_volume_exists.yml
loop: "{{ snapshot_create_volumes }}"
Expand Down

0 comments on commit c3df572

Please sign in to comment.