Actions
Issue #4833
closedroles not found when running example-use/playbook.yml
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
OS:
CentOS 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 56
Quarter:
Description
Running:
ansible-playbook example-use/playbook.yml -u <user> -K --ask-pass returns following error:
ERROR! the role 'pulp-database' was not found in /home/ansible/ansible-pulp/example-use/roles:/home/ansible/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/ansible/ansible-pulp/example-use
The error appears to have been in '/home/ansible/ansible-pulp/example-use/playbook.yml': line 4, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- pulp-database
^ here
Ansible is run locally.
How to fix: copy /roles directory into example-use/ directory
Actions
Extend ansible roles_path
To run our example playbook in subdirectory we need extend ansible roles_path. As ansible doesn't allow direct extend I put there default values and extend with roles directory. Default path must persist as we install and use role from ansible-galaxy.
closes: #4833 https://pulp.plan.io/issues/4833
Signed-off-by: Pavel Picka ppicka@redhat.com