diff options
author | Øystein Bedin <oybed@users.noreply.github.com> | 2017-08-02 14:40:08 +0000 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-08-02 16:40:08 +0200 |
commit | 5820aa4371aec8218426cdceab3360c6955fe018 (patch) | |
tree | 020c43dc1645c37d4f03d59d2ad9625781efb2d0 /roles/dns-views/tasks | |
parent | ca4a695c421236f9f4fe4863b5d1b6545c483b08 (diff) | |
download | openshift-5820aa4371aec8218426cdceab3360c6955fe018.tar.gz openshift-5820aa4371aec8218426cdceab3360c6955fe018.tar.bz2 openshift-5820aa4371aec8218426cdceab3360c6955fe018.tar.xz openshift-5820aa4371aec8218426cdceab3360c6955fe018.zip |
Moving common DNS roles out of the playbook area (#605)
Diffstat (limited to 'roles/dns-views/tasks')
-rw-r--r-- | roles/dns-views/tasks/main.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/dns-views/tasks/main.yml b/roles/dns-views/tasks/main.yml new file mode 100644 index 000000000..7165b4269 --- /dev/null +++ b/roles/dns-views/tasks/main.yml @@ -0,0 +1,25 @@ +--- +- name: "Generate ACL list for DNS server" + set_fact: + acl_list: "{{ acl_list | default([]) + [ (hostvars[item]['private_v4'] + '/32') ] }}" + with_items: "{{ groups['cluster_hosts'] }}" + +- name: "Generate the private view" + set_fact: + private_named_view: + - name: "private" + acl_entry: "{{ acl_list }}" + zone: + - dns_domain: "{{ full_dns_domain }}" + +- name: "Generate the public view" + set_fact: + public_named_view: + - name: "public" + zone: + - dns_domain: "{{ full_dns_domain }}" + forwarder: "{{ public_dns_nameservers }}" + +- name: "Generate the final named_config_views" + set_fact: + named_config_views: "{{ private_named_view + public_named_view }}" |