mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
auto call the file module after copy/template module usage in runner
note some changed=True/False detection bits in file module still need tweaking
This commit is contained in:
parent
4ad885111b
commit
63818000b4
2 changed files with 41 additions and 5 deletions
|
@ -199,7 +199,7 @@ def parse_json(data):
|
|||
raise AnsibleError("failed to parse: %s" % data)
|
||||
(key,value) = t.split("=", 1)
|
||||
if key == 'changed' or 'failed':
|
||||
if value.lower() in [ 'true', '1' ] :
|
||||
if value.lower() in [ 'true', '1' ]:
|
||||
value = True
|
||||
elif value.lower() in [ 'false', '0' ]:
|
||||
value = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue