blob: 8aa0129a923e545f3314ba7216e0ac58d8c67444 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|