Commit Graph

12 Commits

Author SHA1 Message Date
Mathieu Pasquet 547928426b Add my changes 2021-01-04 22:34:08 +01:00
Baptiste Jonglez 3f225e7ec7 Remove deprecated dict.iteritems method
It caused ansible to fail with:

  fatal: [XXX]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"}

This method has been removed in Python3: https://docs.ansible.com/ansible/2.5/dev_guide/testing/sanity/no-dict-iteritems.html
2018-05-25 15:57:35 +02:00
Baptiste Jonglez 4b6015abfc Use defaults/main.yml to avoid checking for empty lists everywhere
This fixes one task that was failing when no primary zone was defined (the
task copying zone files)
2017-09-01 22:39:51 +02:00
Baptiste Jonglez 3dfe3fef0d Rename nsd_common_config to nsd_server_config and nsd_local_config to nsd_local_server_config 2017-09-01 15:24:13 +02:00
Baptiste Jonglez cdf6821679 nsd: adapt for new version of NSD and allow to configure most parameters related to version (nsd3/nsd4) 2017-09-01 10:58:48 +02:00
Baptiste Jonglez b4dd5c9066 NSD: Avoid duplicating the 'list expansion' code in template 2017-09-01 10:20:48 +02:00
Baptiste Jonglez a5d94f234a NSD: Allow global or local configuration to be missing 2017-09-01 10:20:48 +02:00
Baptiste Jonglez eef721d276 NSD: Simplify configuration to use only one file for all zones, instead of many includes
This also allows the playbook to be idempotent.
2017-09-01 10:20:48 +02:00
Baptiste Jonglez 34f12ba81c NSD: Allow to configure the name of the TSIG keys
Of course, I forgot that the name of TSIG keys is relevant, since it needs
to be the same on both the master and the slave...

While we're at it, allow to define keys separately and refer them by name
in zone config, which avoids duplication.
2016-03-26 19:14:59 +01:00
Baptiste Jonglez 0e6f8b9ad2 Fix templates if there is no slave or master defined 2016-03-26 18:51:42 +01:00
Baptiste Jonglez 3bfcbc9d91 NSD: Implement TSIG keys 2016-03-26 18:20:38 +01:00
Baptiste Jonglez adc9f0b18e NSD: first playbook, still rough around the edges (no TSIG support) 2016-03-26 17:56:52 +01:00