Added task listing .pacnew files
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
- name: Check for pending .pacnew files
|
||||
ansible.builtin.find:
|
||||
paths: /etc
|
||||
patterns: "*.pacnew"
|
||||
recurse: yes
|
||||
register: pacnew_files
|
||||
|
||||
- name: Alert if .pacnew files exist
|
||||
ansible.builtin.debug:
|
||||
msg: "Warning: The following .pacnew files require merging: {{ pacnew_files.files | map(attribute='path') | list }}"
|
||||
when: pacnew_files.matched > 0
|
||||
|
||||
Reference in New Issue
Block a user