mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
Merge pull request #550 from t-woerner/dnszone_fix_serial_no_modifications_to_be_performed_issue
dnszone: Fix no modifications to be performed for serial
This commit is contained in:
@@ -492,7 +492,13 @@ class DNSZoneModule(FreeIPABaseModule):
|
|||||||
# See:
|
# See:
|
||||||
# - https://pagure.io/freeipa/issue/8227
|
# - https://pagure.io/freeipa/issue/8227
|
||||||
# - https://pagure.io/freeipa/issue/8489
|
# - https://pagure.io/freeipa/issue/8489
|
||||||
if set_serial:
|
# Only set SOA Serial if it is not set already.
|
||||||
|
if (set_serial and
|
||||||
|
(zone is None
|
||||||
|
or "idnssoaserial" not in zone
|
||||||
|
or zone["idnssoaserial"] is None
|
||||||
|
or zone["idnssoaserial"][0] != str(self.ipa_params.serial)
|
||||||
|
)):
|
||||||
args = {
|
args = {
|
||||||
"idnssoaserial": self.ipa_params.serial,
|
"idnssoaserial": self.ipa_params.serial,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user