Project

Profile

Help

Issue #4833

closed

roles not found when running example-use/playbook.yml

Added by both0 almost 5 years ago. Updated almost 4 years ago.

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 #1

Updated by amacdona@redhat.com almost 5 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 53
Actions #2

Updated by ppicka almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ppicka

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

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

Actions #3

Updated by ppicka almost 5 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by amacdona@redhat.com almost 5 years ago

  • Sprint changed from Sprint 53 to Sprint 54
Actions #5

Updated by ttereshc almost 5 years ago

  • Sprint changed from Sprint 54 to Sprint 55
Actions #6

Updated by dkliban@redhat.com almost 5 years ago

  • Sprint changed from Sprint 55 to Sprint 56
Actions #7

Updated by ppicka over 4 years ago

  • Status changed from POST to MODIFIED
Actions #8

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #9

Updated by bmbouter almost 4 years ago

  • Category set to Installer - Moved to GitHub issues
  • Tags deleted (Pulp 3 installer)

Also available in: Atom PDF