Support for logging of disabled services
This commit is contained in:
@ -29,4 +29,16 @@
|
||||
path: "/boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}"
|
||||
state: absent
|
||||
|
||||
- name: Check if disable services log exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ bigboot_disabled_services_log }}"
|
||||
register: bigboot_disabled_services_log_stat
|
||||
|
||||
- name: Remove disabled services log if present
|
||||
ansible.builtin.file:
|
||||
path: "{{ bigboot_disabled_services_log }}"
|
||||
state: absent
|
||||
when:
|
||||
- bigboot_disabled_services_log_stat['stat']['exists'] | bool
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user