From 2bbebded9e42675a812d4a77fc5442489c4db8f5 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Wed, 9 Oct 2019 12:07:14 -0400 Subject: [PATCH] Migrated bind role to python booleans --- bind/defaults/main.yml | 6 +++--- bind/tasks/main.yml | 22 +++++++++++----------- bind/tasks/munin.yml | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bind/defaults/main.yml b/bind/defaults/main.yml index b7bc2090..9338d847 100644 --- a/bind/defaults/main.yml +++ b/bind/defaults/main.yml @@ -1,7 +1,7 @@ --- -bind_recursive_server: False -bind_authoritative_server: True -bind_chroot_set: True +bind_recursive_server: false +bind_authoritative_server: true +bind_chroot_set: true bind_chroot_path: /var/chroot-bind bind_systemd_service_path: /etc/systemd/system/bind9.service bind_statistics_file: /var/run/named.stats diff --git a/bind/tasks/main.yml b/bind/tasks/main.yml index 03780435..5c28887c 100644 --- a/bind/tasks/main.yml +++ b/bind/tasks/main.yml @@ -13,7 +13,7 @@ owner: bind group: bind mode: "0644" - force: yes + force: true notify: restart bind when: bind_recursive_server @@ -32,7 +32,7 @@ owner: bind group: bind mode: "0644" - force: yes + force: true notify: restart bind when: bind_authoritative_server @@ -43,7 +43,7 @@ owner: root group: root mode: "0644" - force: yes + force: true notify: - reload systemd - restart bind @@ -56,7 +56,7 @@ group: adm mode: "0640" state: touch - when: bind_chroot_set == False + when: not bind_chroot_set - name: touch /var/log/bind_queries.log if non chroot file: @@ -65,7 +65,7 @@ group: adm mode: "0640" state: touch - when: bind_chroot_set == False + when: not bind_chroot_set - name: send chroot-bind.sh in /root copy: @@ -73,14 +73,14 @@ dest: /root/chroot-bind.sh mode: "0700" owner: root - force: yes - backup: yes + force: true + backup: true when: bind_chroot_set - name: exec chroot-bind.sh command: "/root/chroot-bind.sh" register: chrootbind_run - changed_when: False + changed_when: false when: bind_chroot_set - debug: @@ -102,9 +102,9 @@ owner: root group: root mode: "0644" - force: yes + force: true notify: restart bind - when: bind_chroot_set == False + when: not bind_chroot_set - name: logrotate for chroot bind template: @@ -113,7 +113,7 @@ owner: root group: root mode: "0644" - force: yes + force: true notify: restart bind when: bind_chroot_set diff --git a/bind/tasks/munin.yml b/bind/tasks/munin.yml index 5f9da280..751f8093 100644 --- a/bind/tasks/munin.yml +++ b/bind/tasks/munin.yml @@ -3,7 +3,7 @@ - name: is Munin present ? stat: path: /etc/munin/plugin-conf.d/munin-node - check_mode: no + check_mode: false register: munin_node_plugins_config tags: - bind @@ -48,7 +48,7 @@ owner: root group: root mode: "0644" - force: yes + force: true notify: restart munin-node when: munin_node_plugins_config.stat.exists tags: