28 lines
637 B
YAML
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 |