-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fixes #61
Minor fixes #61
Conversation
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
Looks good 👍 Also FYI: https://github.com/StackStorm/ansible-st2/blob/master/ansible.cfg#L2 |
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
@armab I noted your reference to the ansible.cfg file, thanks for that. I suspect it's not getting picked up when I run with Vagrant, because before my changes here, I was getting this error (just sent stdout of ansible-galaxy command to a variable and debugged it):
Or, in case it was being picked up but the path was wrong, I tried this (still didn't work):
|
@armab Ignore my last - I had my streams crossed. The problem is that the pwd will always be |
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
Signed-off-by: Matt Oswalt <[email protected]>
So here's the long and short of it: it looks like the working directory will always be My current approach was to simply move everything out of |
Signed-off-by: Matt Oswalt <[email protected]>
@Mierdin That's really strange, because default What's your ansible 2.2.0.0
Vagrant 1.8.6 It could be rather my old Vagrant version or your old version. Probably something changed between the versions, like Ansible provisioner implementation in Vagrant. Curious about any real reasons, because the fact that you can't run playbook from the sub-directory could be a sign of some deeper inconsistencies. Additionally, there is CI which re-uses same The reason I place example playbooks in sub-directory is that they're provided just for reference and example, which I would like to preserve if possible. Anyways, if we won't find anything interesting and that's the only way to fix things for you, - I'm OK with that as well. |
end | ||
config.vm.provision :ansible do |ansible| | ||
ansible.playbook = "playbooks/stackstorm.yml" | ||
ansible.playbook = "stackstorm.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update README.md
instructions with the new path.
@armab Wouldn't work for me either. Running ansible 2.2.0 and vagrant 1.9.0 |
@bigmstone Thanks! This might be related to Vagrant version ( So if it's Vagrant version logic, I'm OK with change, just update |
Hrm, I have |
Signed-off-by: Matt Oswalt <[email protected]>
ansible-st2/playbooks
so needs to go up a directory first to get toansible-st2/roles
)