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:
Richard Gray 2015-03-07 21:24:32 +13:00
parent e60b2167f5
commit 7c40201c3d

View file

@ -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
)