13 lines
365 B
YAML
13 lines
365 B
YAML
- 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
|
|
|