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

+1 -1
View File
@@ -254,7 +254,7 @@
- name: post-run | update marker file timestamp on successful run
file:
path: "{{ ansible_pull_marker_file }}"
path: "{{ ansible_pull_marker_file | default('/var/tmp/ansible_pull.last_run') }}"
state: touch
tags: always
# - name: send completion alert
+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
@@ -32,7 +32,7 @@
state: present
line: '\tstatistics-file "/var/cache/bind/stats";\n\tzone-statistics yes;'
insertafter: "options {"
validate: "{{ named_checkconf }} %s"
validate: "{{ named_checkconf }} {{ named_conf }}"
notify: restart_named
- name: nameserver | snmpd | configure extend
+1
View File
@@ -9,6 +9,7 @@ powerdns_backends:
- package: powerdns
# named / bind specific
named_conf: /etc/named.conf
named_conf_zones: /etc/named.conf
named_conf_options: /etc/named.conf
named_conf_local: /etc/named.conf
+1
View File
@@ -13,6 +13,7 @@ pdns_mysql_schema: "/usr/share/pdns-backend-mysql/schema/schema.mysql.sql"
pdns_mysql_socket: "/run/mysqld/mysqld.sock"
# named / bind specific
named_conf: /etc/bind/named.conf
named_conf_zones: /etc/bind/named.conf.default-zones
named_conf_options: /etc/bind/named.conf.options
named_conf_local: /etc/bind/named.conf.local