You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running above command, `fun2=zoo' is taken as a playbook_path instead of abc.yml. ==> I'm not sure whether this is an issue or I'm using ansible-bender command wrongly.
After running above command, abc.yml is getting picked as a playbook_path. Which is the correct expectation.
Issue 2:
Also, I'm not able to pass file in extra-ansible-args. I'm trying like below:
cmd="ansible-bender --debug build -l $target_image_tags --extra-ansible-args="--extra-vars=@bcd.yml" abc.yml”
Issue 1:
Use case #1:
When I'm trying to pass multiple variable in extra-ansible-args with ansible-bender command like below:
cmd="ansible-bender --debug build -l $target_image_tags --extra-ansible-args="--extra-vars="fun1=foo fun2=zoo"" abc.yml”
After running above command, `fun2=zoo' is taken as a playbook_path instead of abc.yml. ==> I'm not sure whether this is an issue or I'm using ansible-bender command wrongly.
Use case #2:
When I'm passing only one variable in extra-ansible-args like below, there is no issue occurred.
cmd="ansible-bender --debug build -l $target_image_tags --extra-ansible-args="--extra-vars="fun1=foo"" abc.yml”
After running above command, abc.yml is getting picked as a playbook_path. Which is the correct expectation.
Issue 2:
Also, I'm not able to pass file in extra-ansible-args. I'm trying like below:
cmd="ansible-bender --debug build -l $target_image_tags --extra-ansible-args="--extra-vars=@bcd.yml" abc.yml”
After running above command, it's giving errors. I'm not sure whether this feature is supported or not? I'm following https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html#cmdoption-ansible-playbook-e link for reference.
The text was updated successfully, but these errors were encountered: