# 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