mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
puppet: new arg to toggle no-/use_srv_records flag (#53095)
This commit is contained in:
parent
205f6b1699
commit
69ead0ba78
1 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,11 @@ options:
|
||||||
- It has no effect with a puppetmaster.
|
- It has no effect with a puppetmaster.
|
||||||
type: str
|
type: str
|
||||||
version_added: "2.1"
|
version_added: "2.1"
|
||||||
|
use_srv_records:
|
||||||
|
description:
|
||||||
|
- Toggles use_srv_records flag
|
||||||
|
type: bool
|
||||||
|
version_added: "2.9"
|
||||||
summarize:
|
summarize:
|
||||||
description:
|
description:
|
||||||
- Whether to print a transaction summary.
|
- Whether to print a transaction summary.
|
||||||
|
@ -192,6 +197,7 @@ def main():
|
||||||
summarize=dict(type='bool', default=False),
|
summarize=dict(type='bool', default=False),
|
||||||
debug=dict(type='bool', default=False),
|
debug=dict(type='bool', default=False),
|
||||||
verbose=dict(type='bool', default=False),
|
verbose=dict(type='bool', default=False),
|
||||||
|
use_srv_records=dict(type='bool'),
|
||||||
),
|
),
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
mutually_exclusive=[
|
mutually_exclusive=[
|
||||||
|
@ -260,6 +266,11 @@ def main():
|
||||||
cmd += " --certname='%s'" % p['certname']
|
cmd += " --certname='%s'" % p['certname']
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
cmd += " --noop"
|
cmd += " --noop"
|
||||||
|
if p['use_srv_records'] is not None:
|
||||||
|
if not ['use_srv_records']:
|
||||||
|
cmd += " --no-use_srv_records"
|
||||||
|
else:
|
||||||
|
cmd += " --use_srv_records"
|
||||||
elif 'noop' in p:
|
elif 'noop' in p:
|
||||||
if p['noop']:
|
if p['noop']:
|
||||||
cmd += " --noop"
|
cmd += " --noop"
|
||||||
|
|
Loading…
Reference in a new issue