diff --git a/defaults/main.yml b/defaults/main.yml index ffa82ed..565117a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -100,10 +100,6 @@ bind9_matrix_notifier_body: displayName: "{{ bind9_matrix_notifier_display_name }}" avatarUrl: "{{ bind9_matrix_notifier_avatar_url }}" - -# Install monit file for bind9 named -bind9_monit_enabled: no - bind9_packages: - bind9 - dnsutils diff --git a/files/monit/conf.d/bind9 b/files/monit/conf.d/bind9 deleted file mode 100644 index e33661d..0000000 --- a/files/monit/conf.d/bind9 +++ /dev/null @@ -1,4 +0,0 @@ -check process named with pidfile /run/named/named.pid - start program = "/usr/sbin/service bind9 start" with timeout 60 seconds - stop program = "/usr/sbin/service bind9 stop" - group server diff --git a/handlers/main.yml b/handlers/main.yml index e498feb..c357ce5 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -9,11 +9,6 @@ name: bind9 state: reloaded -- name: Restart monit - ansible.builtin.service: - name: monit - state: restarted - - name: Zone file change ansible.builtin.debug: msg: "dummy handler" diff --git a/tasks/main.yml b/tasks/main.yml index 527e424..5789880 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -347,7 +347,3 @@ changed_when: False vars: ansible_ssh_pipelining: True - -- name: Import monit tasks - ansible.builtin.import_tasks: monit.yml - when: bind9_monit_enabled | default() diff --git a/tasks/monit.yml b/tasks/monit.yml deleted file mode 100644 index 06312f0..0000000 --- a/tasks/monit.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -- name: Ensure monit configs are present - ansible.builtin.copy: - src: "monit/conf.d/{{ item }}" - dest: "/etc/monit/conf.d/{{ item }}" - owner: root - group: root - mode: "0600" - with_items: - - bind9 - notify: Restart monit