mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Fix for sudo defaults if sudo is passed in via --extra-vars
This commit is contained in:
parent
7d7ff9d616
commit
a768e9a9ff
2 changed files with 12 additions and 2 deletions
|
@ -499,3 +499,12 @@ def get_available_modules(dirname=None):
|
|||
modules_list.update(os.listdir(path))
|
||||
modules_list = list(modules_list)
|
||||
return modules_list
|
||||
|
||||
def boolean(value):
|
||||
val = str(value)
|
||||
if val.lower() in [ "true", "t", "y", "1", "yes" ]:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue