Use role defined under another filesystem path

11 views
Skip to first unread message

cmou...@redhat.com

unread,
Mar 22, 2018, 1:48:39 PM3/22/18
to Ansible Project
Hi

My playbook is executed from this directory /home/projectA/playbook and it contains roles directory.
One of the task defined within a role of this playbook would like to call another role which is not defined under  /home/projectA/playbook/roles
but within a different directory

/home/projectB
istio/
  defaults/
  meta/
  tasks/
  vars/
main.yml

Main file 
#######
---
- hosts: localhost
  gather_facts: true
  roles:
    - istio

How can I within a /home/projectA/playbook/roles/roleA/tasks/main.yml calls the role "istio" ?

Regards

Charles

Marcos Alano

unread,
Mar 23, 2018, 7:19:09 AM3/23/18
to ansible...@googlegroups.com
You could use Ansible Galaxy to import your roles. I think this is the
sane approach.
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7672467b-cc78-47f8-a870-87c99dc270c2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Marcos H. Alano
Linux System Administrator
marcos...@gmail.com
Reply all
Reply to author
Forward
0 new messages