From 7c40201c3d3aef1ef20411dd505d499b19953bee 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. --- system/locale_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/locale_gen.py b/system/locale_gen.py index 70b83be88aa..5d53951cf18 100644 --- a/system/locale_gen.py +++ b/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 )