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
hi! @abdullah-lt
it was already solved, which version of go-ansible are you using?
I recommend to use last version, though version 0.8.0 already had extravars quoted.
I have updated the example simple-ansibleplaybook as:
Hi @apenella
I am using the latest version - v1.1.0. There was a different code issue and I was printing the command in a different way which removed the quotes from the ansible command. Thanks for your response and example.
The ansible command that is being generated when adding extra vars argument is
ansible-playbook --extra-vars {"EC2IP":"127.0.0.1","ansible_password":"123456"} --inventory 10.10.10.120, --user root change-settings.yml
This is not working as extra-vars json should be enclosed in qoutes like
ansible-playbook --extra-vars '{"EC2IP":"127.0.0.1","ansible_password":"123456"}' --inventory 10.10.10.120, --user root change-settings.yml
The text was updated successfully, but these errors were encountered: