refactor: replace verbose flag with Ansible verbosity (-v) flag

- Remove custom 'verbose' parameter from module
- Use Ansible's built-in verbosity setting (module._verbosity)
- Verbose output now shown with -v, -vv, -vvv flags
- Add notes to DOCUMENTATION explaining -v flag usage
- Update all examples to remove verbose: true parameter
- Update all documentation to mention -v flag instead
- Simplifies module interface by leveraging Ansible conventions
This commit is contained in:
Daniel Akulenok
2026-01-29 20:48:15 +01:00
parent 4625f2cb1e
commit d37d09b631
7 changed files with 11 additions and 20 deletions

View File

@@ -35,6 +35,7 @@ pip install dnspython
```
**Note**: By default, SOA and DNSSEC records are ignored, and record validation is enabled.
**Tip**: Run with `-v` flag to see detailed per-record actions.
## DNS Server Setup (BIND Example)
@@ -186,7 +187,6 @@ dig @ns1.example.com example.com MX
# SOA and DNSSEC records are ignored by default
ignore_record_patterns:
- '^_acme-challenge\..*'
verbose: true # Show per-record actions
zones:
- name: example.com
records: "{{ static_records }}"
@@ -200,7 +200,6 @@ dig @ns1.example.com example.com MX
key_name: "nsupdate"
key_secret: "{{ vault_dns_key }}"
dns_server: ns1.dns.com # Shared server for all zones
verbose: true # Show detailed changes
zones:
- name: example.com
records: "{{ example_com_records }}"