-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
Spaces in the path of roles_path causes playbooks to fail in 1.7 #8555
Comments
Can confirm: is happening for me too. Moving the ansible directory to a path without a space fixed the issue. |
I made a symlink to the path with spaces, then I pointed my roles_path to the symlink. The path to the symlink has no spaces.
|
I experienced the same, downgraded to 1.6.x |
hi derelm where can I get 1.6.x? |
@athena88 |
I can confirm this for Ansible 1.7.2 and Yosemite (OSX 10.10). |
Can confirm with Ansible 1.7.2 on debian wheezy and ubuntu 12.04 |
Can also confirm for Ansible 1.7.2 (installed via homebrew) on OSX 10.10.1 |
Hi, this situation is no longer present in the devel branch (which will be ansible 2.0). Here is sample output using your example above: [root@jimi 8555]# mkdir "subdir spaces" [root@jimi 8555]# ll total 4 drwxr-xr-x. 2 root root 4096 Jun 23 10:31 subdir spaces [root@jimi 8555]# cd subdir\ spaces/ [root@jimi subdir spaces]# ansible-galaxy init testing - testing was created successfully [root@jimi subdir spaces]# mkdir roles [root@jimi subdir spaces]# mv testing roles [root@jimi subdir spaces]# vi roles/testing/tasks/main.yml [root@jimi subdir spaces]# vi test.yml [root@jimi subdir spaces]# ansible-playbook -vv test.yml 1 plays in test.yml PLAY: *************************************************************************** TASK [testing : testing : debug msg=here i am] ********************************** ok: [localhost] => { "msg": "here i am", "changed": false } PLAY RECAP ********************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=0 [root@jimi subdir spaces]# cd .. [root@jimi 8555]# ansible-playbook -vv subdir\ spaces/test.yml 1 plays in subdir spaces/test.yml PLAY: *************************************************************************** TASK [testing : testing : debug msg=here i am] ********************************** ok: [localhost] => { "msg": "here i am", "changed": false } PLAY RECAP ********************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=0 If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
Thanks On Tue, Jun 23, 2015 at 10:33 PM, James Cammarata notifications@github.com
|
Issue Type:
Bug Report
Ansible Version:
ansible 1.7
Environment:
Summary:
Spaces in the path of
roles_path
causes playbooks to fail. This works fine in 1.6.10 but is broken in 1.7.Steps To Reproduce:
~/Projects/Ansible Sites/playbooks/test.yml
playbook~/Projects/Ansible Sites/roles/test_ping
role with one task inmain.yml
roles_path
in~/.ansible.cfg
that contains a parent directory with a space in the name:ansible-playbook playbooks/test.yml
from~/Projects/Ansible Sites
Expected Results:
Playbook will find roles in the directories specified in
roles_path
and run successfully.Actual Results:
Playbook fails to run because it cannot find the role.
The text was updated successfully, but these errors were encountered: