Issue Type:
Bug Report
Ansible Version:
ansible 1.7
Environment:
ProductName: Mac OS X
ProductVersion: 10.9.4
BuildVersion: 13E28
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:
- Create
~/Projects/Ansible Sites/playbooks/test.yml playbook
---
- hosts: test.acme.com
roles:
- test_ping
- Create
~/Projects/Ansible Sites/roles/test_ping role with one task in main.yml
- Add a relative path to
roles_path in ~/.ansible.cfg that contains a parent directory with a space in the name:
roles_path = ./roles:./librarian_roles:../roles:../librarian_roles
- Run
ansible-playbook playbooks/test.yml from ~/Projects/Ansible Sites
cd ~/Projects/Ansible\ Sites
ansible-playbook playbooks/test.yml
Expected Results:
Playbook will find roles in the directories specified in roles_path and run successfully.
PLAY [test.acme.com] ****************************************************
GATHERING FACTS ***************************************************************
ok: [test.acme.com]
TASK: [test_ping | ping ] *****************************************************
ok: [test.acme.com]
PLAY RECAP ********************************************************************
test.acme.com : ok=2 changed=0 unreachable=0 failed=0
Actual Results:
Playbook fails to run because it cannot find the role.
ERROR: file could not read: /Users/sdoran/Projects/Ansible Sites/playbooks/'/Users/sdoran/Projects/Ansible Sites/roles/test_ping/tasks/main.yml'
Issue Type:
Bug Report
Ansible Version:
ansible 1.7Environment:
Summary:
Spaces in the path of
roles_pathcauses playbooks to fail. This works fine in 1.6.10 but is broken in 1.7.Steps To Reproduce:
~/Projects/Ansible Sites/playbooks/test.ymlplaybook~/Projects/Ansible Sites/roles/test_pingrole with one task inmain.ymlroles_pathin~/.ansible.cfgthat contains a parent directory with a space in the name:ansible-playbook playbooks/test.ymlfrom~/Projects/Ansible SitesExpected Results:
Playbook will find roles in the directories specified in
roles_pathand run successfully.Actual Results:
Playbook fails to run because it cannot find the role.