Support for logging of disabled services

This commit is contained in:
2024-07-30 17:16:57 -04:00
parent f655d19716
commit 664291b15d
4 changed files with 33 additions and 0 deletions

View File

@ -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
...