Files
ansible-pull/roles/nameserver/tasks/main.yml
2022-03-23 19:27:59 +01:00

28 lines
637 B
YAML

# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- block:
- debug:
msg: Debug
# # import role
# - import_role:
# name: # required. The name of the role to be executed.
- block:
# install software
- 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:
- set_fact: task_failed=true