BUG FIXES:
- Move the installation of
policycoreutils-python-utilsfrom the RedHat repository tasks to the install tasks and tag itinstallonly. It is the dependency of the SELinux policy tasks, not of the repository setup, so--skip-tags repositoryskipped it and--skip-tags installdid not (#282) - Add
pdns_provision_api_timeout(default 90 seconds) and apply it to every provisioning API call.ansible.builtin.uridefaults to 30 seconds and the zone list endpoint returns every zone in one response, so a large installation failed withRequest failed: timed outwhile the server was healthy (#279) - Split the MySQL, PostgreSQL and SQLite database tasks into an install include (
install,backend) and a configure include (config,backend), and dropconfigfrom the SQLite Debian dependency task. The single include carried all three phase tags, so--skip-tags config,serviceor--skip-tags repository,installskipped the whole database block, children of the other phase included (#280) - Tag the service start task
configandservice, so--tags configapplies the desired service state, and the systemd drop-in cleanup on uninstallinstall, aspdns_recursoranddnsdistalready do. The cleanup was taggedconfig, serviceand so skipped by the removal pass--skip-tags config,service -e pdns_package_state=absent, leaving drop-ins for a unit that was gone (#282) - Set
setype: _defaulton the directories the role creates (database directories andpdns_config_additional_dirs) whenpdns_manage_selinuxis true. Thefilemodule gives a new directory the type of its parent, so a new/var/lib/pdnswas labelledvar_lib_tinstead ofpdns_var_lib_t, which can stop the server from writing its database under enforcing SELinux. An existing directory with the wrong type is relabelled on the next run (#278) - Move the
pdns_backendsdefault todefault_pdns_backendsand reference it through a template string, the waypdns_backends_packagesalready is. Withhash_behaviour=mergethe plain dict default was merged into the backends declared in inventory, solaunch+=bindappeared next to the intended backend and, the bind module not being installed, the server failed to start (#277) - Add
bindto the Debian backend package map (pdns-backend-bind), so a declared bind backend gets its package installed; on repo.powerdns.com 4.8+ and on Debian/Ubuntu it is a separate package (#277)