Issue #4833
closedroles not found when running example-use/playbook.yml
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
Updated by amacdona@redhat.com almost 5 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 53
Updated by ppicka almost 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ppicka
Added by ppicka almost 5 years ago
Added by ppicka almost 5 years ago
Revision e8d72a6f | View on GitHub
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
Updated by ppicka almost 5 years ago
- Status changed from ASSIGNED to POST
Updated by amacdona@redhat.com almost 5 years ago
- Sprint changed from Sprint 53 to Sprint 54
Updated by ttereshc almost 5 years ago
- Sprint changed from Sprint 54 to Sprint 55
Updated by dkliban@redhat.com almost 5 years ago
- Sprint changed from Sprint 55 to Sprint 56
Updated by ppicka over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset ansible-pulp3|e8d72a6f4b69a2302186bf70838599522e7967bc.
Updated by bmbouter over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Updated by bmbouter almost 4 years ago
- Category set to Installer - Moved to GitHub issues
- Tags deleted (
Pulp 3 installer)
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