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 committed by Matt Clay
parent 1e21e34e0f
commit e6bf26967c

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
)