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.
reviewable/pr18780/r1
Richard Gray 10 years ago
parent e60b2167f5
commit 7c40201c3d

@ -146,7 +146,7 @@ def main():
module = AnsibleModule(
argument_spec = dict(
name = dict(required=True),
state = dict(choices=['present','absent'], required=True),
state = dict(choices=['present','absent'], default='present'),
),
supports_check_mode=True
)

Loading…
Cancel
Save