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.
reviewable/pr18780/r1
Michael DeHaan 13 years ago
parent cb46a14a96
commit 6bee002074

11
setup

@ -96,10 +96,9 @@ md5sum2 = os.popen("md5sum %s" % ansible_file).read().split()[0]
if md5sum != md5sum2: if md5sum != md5sum2:
changed = True changed = True
result = { new_options['written'] = ansible_file
"written" : ansible_file, new_options['changed'] = changed
"changed" : changed, new_options['md5sum'] = md5sum2
"md5sum" : md5sum2
} print json.dumps(new_options)
print json.dumps(result)

Loading…
Cancel
Save