From e6bf26967cc173d0ea8167fc1cff3eb3d9540bb5 Mon Sep 17 00:00:00 2001 From: Richard Gray Date: Sat, 7 Mar 2015 21:24:32 +1300 Subject: [PATCH] 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. --- lib/ansible/modules/extras/system/locale_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/locale_gen.py b/lib/ansible/modules/extras/system/locale_gen.py index 70b83be88aa..5d53951cf18 100644 --- a/lib/ansible/modules/extras/system/locale_gen.py +++ b/lib/ansible/modules/extras/system/locale_gen.py @@ -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 )