mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Set default for locale_gen state parameter
Fix the state parameter for the locale_gen module to be non-mandatory with a default value of 'present', as indicated by the module documentation.
This commit is contained in:
@@ -146,7 +146,7 @@ def main():
|
|||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
name = dict(required=True),
|
name = dict(required=True),
|
||||||
state = dict(choices=['present','absent'], required=True),
|
state = dict(choices=['present','absent'], default='present'),
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user