mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Factoids and push variables via setup are now available to be templated in command args
as well as template files. PLUS, variables are now expressed in playbooks without having to know about the setup task, which means playbooks are simpler to read now.
This commit is contained in:
@@ -96,10 +96,9 @@ md5sum2 = os.popen("md5sum %s" % ansible_file).read().split()[0]
|
||||
if md5sum != md5sum2:
|
||||
changed = True
|
||||
|
||||
result = {
|
||||
"written" : ansible_file,
|
||||
"changed" : changed,
|
||||
"md5sum" : md5sum2
|
||||
}
|
||||
new_options['written'] = ansible_file
|
||||
new_options['changed'] = changed
|
||||
new_options['md5sum'] = md5sum2
|
||||
|
||||
print json.dumps(new_options)
|
||||
|
||||
print json.dumps(result)
|
||||
|
||||
Reference in New Issue
Block a user