Moved playbooks here; zsh dotfiles distro; new config logs

This commit is contained in:
2026-09-13 14:16:38 -04:00
parent 386e165f6b
commit cd2fb6651f
13 changed files with 260 additions and 2 deletions
@@ -63,6 +63,7 @@ def extract_ver(content):
def strip_volatile_fields(content):
content = re.sub(r'^pkgver=.*$', '', content, flags=re.MULTILINE)
content = re.sub(r'^pkgrel=.*$', '', content, flags=re.MULTILINE)
content = re.sub(r'^arch=\(.*?\)', '', content, flags=re.MULTILINE | re.DOTALL)
source_vars = set()
source_matches = re.finditer(r'^source(?:_[a-zA-Z0-9_]+)?=\((.*?)\)', content, flags=re.MULTILINE | re.DOTALL)
+26 -1
View File
@@ -5,8 +5,33 @@
recurse: yes
register: pacnew_files
- name: Ensure pacnew.logs directory exists locally
ansible.builtin.file:
path: "{{ playbook_dir }}/pacnew.logs"
state: directory
mode: '0755'
delegate_to: localhost
run_once: true
become: no
- name: Save .pacnew list to file
ansible.builtin.copy:
content: "{{ pacnew_files.files | map(attribute='path') | join('\n') }}\n"
dest: "{{ playbook_dir }}/pacnew.logs/{{ inventory_hostname }}.pacnew"
mode: '0644'
delegate_to: localhost
become: no
when: pacnew_files.matched > 0
- name: Clean up old .pacnew list file if no .pacnew files exist
ansible.builtin.file:
path: "{{ playbook_dir }}/pacnew.logs/{{ inventory_hostname }}.pacnew"
state: absent
delegate_to: localhost
become: no
when: pacnew_files.matched == 0
- 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