Skip to content
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

Question on use of roles #38

Closed
mickengland opened this issue Sep 25, 2015 · 1 comment
Closed

Question on use of roles #38

mickengland opened this issue Sep 25, 2015 · 1 comment
Milestone

Comments

@mickengland
Copy link

Trying to run a playbook that references a role I get the following error:

Starting play run.yml.
ERROR: cannot find role in /root/playbook_5605429dd87177010043a335/roles/achaussier.apache or /root/playbook_5605429dd87177010043a335/achaussier.apache or /etc/ansible/roles/achaussier.apache
/etc/ansible/roles/achaussier.apache exists on the semaphore host.

I included a roles directory in my unusable-apache reposthat the job is calling and the job ran successfully.

My playbook contains:
- hosts: all
  remote_user: mick
  sudo: yes
  remote_user: mick
  roles:
    - achaussier.apache

What is the correct way to reference that role in semaphore so I don’t have to duplicate roles in each playbook repository?

@mickengland mickengland changed the title Question on uese of roles Question on use of roles Sep 25, 2015
@matejkramny matejkramny added this to the 2.0 milestone Apr 24, 2016
@matejkramny
Copy link
Contributor

Currently no way. V2-alpha has capability to specify command-line arguments before running a playbook. You could tell ansible to run the roles needed using this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants