docs(examples): update to use Ansible FQCN
- Updated debug tasks to use ansible.builtin.debug (FQCN) - Removed trailing whitespace - Fixed line length violations - Examples now follow Ansible guidelines
This commit is contained in:
@@ -11,7 +11,7 @@ list_of_nsupdate_zones:
|
||||
type: TXT
|
||||
value: 'c8445a4f-cf4c-4130-94c8-21c2b0da80c0'
|
||||
state: absent
|
||||
|
||||
|
||||
# Multiple values are specified in list form.
|
||||
- record: 'hugs.dk.'
|
||||
type: CAA
|
||||
@@ -47,7 +47,7 @@ list_of_nsupdate_zones:
|
||||
- "v=spf1 mx a include:_spf.google.com ~all"
|
||||
- "google-site-verification=8PimrghUKUJi9dJhfj1CGyB7s5zzf6ZiiZxukzPALM0"
|
||||
|
||||
# Complex records with multiple fields are simply
|
||||
# Complex records with multiple fields are simply
|
||||
# separated by a space in the value field.
|
||||
- record: 'hugs.dk.'
|
||||
type: MX
|
||||
@@ -63,15 +63,15 @@ list_of_nsupdate_zones:
|
||||
- name: Provision DNS zones efficiently
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
|
||||
|
||||
vars_files:
|
||||
- sample_zone_format.yml
|
||||
|
||||
|
||||
vars:
|
||||
# Your TSIG key for authentication
|
||||
dns_tsig_key_name: "nsupdate"
|
||||
dns_tsig_key_secret: "{{ vault_dns_key }}" # Store in ansible-vault
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Update DNS zones
|
||||
valid.nsupdate_zone.nsupdate_zone:
|
||||
@@ -84,9 +84,9 @@ list_of_nsupdate_zones:
|
||||
- '^_acme-challenge\..*'
|
||||
zones: "{{ list_of_nsupdate_zones }}"
|
||||
register: zone_update_result
|
||||
|
||||
|
||||
- name: Display update summary
|
||||
debug:
|
||||
ansible.builtin.debug:
|
||||
msg: |
|
||||
Zone: {{ item.zone }}
|
||||
Changed: {{ item.changed }}
|
||||
|
||||
Reference in New Issue
Block a user