mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 13:14:24 -07:00
[PR #10494/736ce198 backport][stable-11] arg_spec adjustments: modules [a-f]* (#10501)
arg_spec adjustments: modules [a-f]* (#10494)
* arg_spec adjustments: modules [a-f]*
* add changelog frag
* Update changelogs/fragments/10494-rfdn-1.yml
---------
(cherry picked from commit 736ce1983d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9d8fac08bb
commit
a5ae69c701
27 changed files with 134 additions and 110 deletions
|
@ -247,14 +247,14 @@ class Cargo(object):
|
|||
|
||||
def main():
|
||||
arg_spec = dict(
|
||||
executable=dict(default=None, type="path"),
|
||||
executable=dict(type="path"),
|
||||
name=dict(required=True, type="list", elements="str"),
|
||||
path=dict(default=None, type="path"),
|
||||
path=dict(type="path"),
|
||||
state=dict(default="present", choices=["present", "absent", "latest"]),
|
||||
version=dict(default=None, type="str"),
|
||||
version=dict(type="str"),
|
||||
locked=dict(default=False, type="bool"),
|
||||
directory=dict(default=None, type="path"),
|
||||
features=dict(default=[], required=False, type="list", elements="str"),
|
||||
directory=dict(type="path"),
|
||||
features=dict(default=[], type="list", elements="str"),
|
||||
)
|
||||
module = AnsibleModule(argument_spec=arg_spec, supports_check_mode=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue