fix base PPA cleanup, marker file post-run, and bind snmpd validation

- base: drop leftover apt_repository removal + equivalents debug (undefined on Ubuntu resolute), clean ansible.list via file module for all debian-based distros
- local.yml: default ansible_pull_marker_file in post-run so a cooldown end_play does not abort the run
- nameserver: validate named config against main named.conf instead of isolated %s; add named_conf to debian/archlinux vars
This commit is contained in:
rene committed 2026-10-22 15:58:01 +02:00
1 parent b5b1d926be
commit 598506f58d
5 files changed
+6 -20

No files matched your search

+2 -18
View File
@@ -6,33 +6,17 @@
state: absent
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
- debug:
var: ansible_facts['distribution_release']
- debug:
var: equivalents[ansible_facts['distribution_release']]['ubuntu']
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
- name: ansible setup | remove ansible archive keyring
file:
path: /usr/share/keyrings/ansible-archive-keyring.gpg
state: absent
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
- name: ansible setup | remove repository file - Debian
- name: ansible setup | remove repository file - Debian / Ubuntu
file:
path: /etc/apt/sources.list.d/ansible.list
state: absent
when: ansible_facts['distribution'] == "Debian"
- name: ansible setup | remove repository - Debian / Ubuntu
tags: ansible,ansible-setup
apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/ansible-archive-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu {{ equivalents[ansible_facts['distribution_release']]['ubuntu'] }} main"
state: absent
update_cache: no
filename: ansible
when: ansible_facts['distribution'] in ["Debian", "Ubuntu"]
when: ansible_facts['distribution'] in ["Debian", "Pop!_OS", "Ubuntu", "Linux Mint"]
- name: ansible setup | ensure ansible is the latest version
tags: ansible,ansible-setup