snmpd for bind

This commit is contained in:
rene
2022-03-23 19:19:49 +01:00
parent ac7dd7ee87
commit 110e026bae
3 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
- name: nameserver | install packages - name: nameserver | bind | install packages
package: package:
name: "{{ bind_package }}" name: "{{ bind_package }}"
state: present state: present

View File

@@ -9,9 +9,20 @@
# # import role # # import role
# - import_role: # - import_role:
# name: # required. The name of the role to be executed. # name: # required. The name of the role to be executed.
- block:
# install software # install software
- include_tasks: install_bind.yml - include_tasks: install_bind.yml
- include_tasks: configure_bind_snmpd.yml
rescue:
- set_fact: task_failed=true
when: bind == true
- block:
- include_tasks: install_unbound.yml
- include_tasks: configure_unbound.yml
rescue:
- set_fact: task_failed=true
when: unbound == true
rescue: rescue:
- set_fact: task_failed=true - set_fact: task_failed=true