The variable in defaults/main.yml will leave /etc/sysconfig/named
empty which is the package default. We want IPv4 only however.
This is set in the secrets repo.
Signed-off-by: David Galloway <dgallowa@redhat.com>
- 127.0.0.1
- "{{ ansible_all_ipv4_addresses[0] }}"
named_conf_zones_path: "/var/named/zones"
+named_conf_daemon_opts: ""
# Zone file conf vars
named_conf_soa_ttl: 3600
validate: named-checkconf %s
notify: restart named
with_dict: "{{ named_domains }}"
+
+- name: Apply named daemon options
+ lineinfile:
+ dest: /etc/sysconfig/named
+ regexp: '^OPTIONS='
+ line: "OPTIONS=\"{{ named_conf_daemon_opts }}\""
+ state: present
+ create: True
+ notify: restart named