diff options
Diffstat (limited to 'sapsnug.sh/snippet of clone.yml')
-rw-r--r-- | sapsnug.sh/snippet of clone.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sapsnug.sh/snippet of clone.yml b/sapsnug.sh/snippet of clone.yml new file mode 100644 index 0000000..8aa0129 --- /dev/null +++ b/sapsnug.sh/snippet of clone.yml @@ -0,0 +1,14 @@ +# Reference: +# derive the in-addr.arpa reversed IP address https://github.com/ansible/ansible/issues/18738#issuecomment-264737140 + +- name: add reverse ptr records to dns for new servers + # whenever ansible adds support for nsupdate with gsstsig, please migrate to that method! + shell: /etc/ansible/books/stable/clone/dependencies/sapsnug.sh "update add {{ (item.ip.split('.'))[::-1]|join('.') }}.in-addr.arpa 300 IN PTR {{ item.name }}.{{ item.dns_zone | default(default_dns_zone) }}." + environment: + SNUG_USERNAME: "{{ vc_username }}" + SNUG_PASSWORD: "{{ vc_password }}" + #SNUG_DEBUG: yes + SNUG_DELIM: '%' + with_items: + - "{{ vms }}" + register: sapsnug
\ No newline at end of file |