mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +00:00
Merge pull request #582 from rjeffman/dnszone_add_check_mode_support
ipadnszone: add check mode support
This commit is contained in:
@@ -962,6 +962,10 @@ else:
|
||||
|
||||
def _run_ipa_commands(self):
|
||||
"""Execute commands in self.ipa_commands."""
|
||||
if self.check_mode:
|
||||
self.changed = len(self.ipa_commands) > 0
|
||||
return
|
||||
|
||||
result = None
|
||||
|
||||
for name, command, args in self.ipa_commands:
|
||||
|
||||
@@ -537,6 +537,7 @@ def main():
|
||||
argument_spec=get_argument_spec(),
|
||||
mutually_exclusive=[["name", "name_from_ip"]],
|
||||
required_one_of=[["name", "name_from_ip"]],
|
||||
supports_check_mode=True,
|
||||
).ipa_run()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user