Browse Source

Pass inventory file to ansible-runner

It is possible for our windmill-config directory to have another
inventory file. In an effort to stop ansible from picking more then one,
we can force the inventory we want.

Change-Id: Iaf543f0fea3a2f247205b382e86af61d1c321aa4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/21/644721/1
Paul Belanger 3 years ago
parent
commit
9000c5a8c2
  1. 4
      launch/launch-node.py

4
launch/launch-node.py

@ -100,8 +100,8 @@ def bootstrap_server(server, key, name, group, keep, timeout):
SCRIPT_DIR, '..', 'playbooks', 'bootstrap-ansible')
r = ansible_runner.run(
private_data_dir=runner.root, playbook='site.yaml',
project_dir=project_dir)
inventory=runner.hosts, private_data_dir=runner.root,
playbook='site.yaml', project_dir=project_dir)
if r.rc:
raise Exception("Ansible runner failed")

Loading…
Cancel
Save