Update resolvers role to add condition

This commit is contained in:
Nemo 2020-07-11 16:00:18 +02:00
parent 30e5147587
commit ea525cc23b
3 changed files with 7 additions and 0 deletions

View file

@ -22,6 +22,9 @@ All variables and default values are defined in `defaults/main.yml` :
# Domain to use in the DNS "search" resolver field # Domain to use in the DNS "search" resolver field
main_domain: wirebrass.fr main_domain: wirebrass.fr
# Set to true if you want to configure resolvers with Ansible
configure_resolvers: true
Dependencies Dependencies
------------ ------------

View file

@ -10,3 +10,6 @@ resolvers:
# Domain to use in the DNS "search" resolver field # Domain to use in the DNS "search" resolver field
main_domain: wirebrass.fr main_domain: wirebrass.fr
# Set to true if you want to configure resolvers with Ansible
configure_resolvers: true

View file

@ -2,3 +2,4 @@
# Main tasks file for client_resolvers # Main tasks file for client_resolvers
- import_tasks: resolv_conf.yml - import_tasks: resolv_conf.yml
when: configure_resolvers