mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +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:
|
||||
# - https://pagure.io/freeipa/issue/8227
|
||||
# - 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 = {
|
||||
"idnssoaserial": self.ipa_params.serial,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user