mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 10:21:25 -07:00
require armored_public_key if state=present
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
90a8906d3e
commit
b1db74bb72
1 changed files with 4 additions and 1 deletions
|
@ -355,7 +355,10 @@ def main():
|
||||||
}
|
}
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=argument_spec,
|
argument_spec=argument_spec,
|
||||||
supports_check_mode=True
|
supports_check_mode=True,
|
||||||
|
required_if=[
|
||||||
|
('state', 'present', ['armored_public_key']),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
armored_public_key = module.params.get('armored_public_key')
|
armored_public_key = module.params.get('armored_public_key')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue