issue #477: hacksmash weird 2.3 inventory_file var issue.

issue510
David Wilson 6 years ago
parent ee44d98f13
commit ea23d7fd54

@ -12,7 +12,7 @@
- delegate_to: localhost
command: |
ansible-playbook
-i "{{inventory_file}}"
-i "{{MITOGEN_INVENTORY_FILE}}"
integration/connection/_disconnect_during_module.yml
args:
chdir: ../..

@ -42,6 +42,11 @@ extra = {
'git_basedir': GIT_BASEDIR,
}
if '-i' in sys.argv:
extra['MITOGEN_INVENTORY_FILE'] = (
os.path.abspath(sys.argv[1 + sys.argv.index('-i')])
)
args = ['ansible-playbook']
args += ['-e', json.dumps(extra)]
args += sys.argv[1:]

Loading…
Cancel
Save