1
0
forked from finallycoffee/base

fix(powerdns_tsig_key): restart powerdns after tsig key creation

This commit is contained in:
transcaffeine 2024-07-22 18:17:53 +02:00
parent ab7cca0947
commit 4837172f64
Signed by untrusted user: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -59,6 +59,18 @@
throttle: 1
become: true
- name: Ensure PowerDNS is restarted
community.docker.docker_container:
name: "{{ powerdns_tsig_key_container_name }}"
state: started
restart: true
when: >-
(powerdns_tsig_key_name ~ '. ' ~ powerdns_tsig_key_algo ~ '. ')
not in powerdns_tsig_key_powerdns_info.stdout
delegate_to: "{{ powerdns_tsig_key_hostname }}"
throttle: 1
become: true
- name: Extract TSIG key into variable
ansible.builtin.set_fact:
powerdns_tsig_key_key: >-