snmpd for bind
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user