$ ansible --version
ansible 2.4.0 (devel 16d522cf2c) last updated 2017/05/22 14:49:05 (GMT -700)

# role/ServiceDeploy/tasks/main.yml
- name: SERVICE Deployment
  include_role:
    name: '{{item}}'
  with_items:
     - "{{ SERVICE_DEPLOY_LIST }}"

# Defaults/main.yml
SERVICE_DEPLOY_LIST:
  - 'MicroService1'
  - 'MicroService2'
  - 'MicroService3'
  - 'MicroService4'
  - 'MicroService5'

# roles/MicroService1/tasks/main.yml
- name: Initiating Service Deployment
  include_role:
    name: DEPLOY
  tags: MicroService1-Deploy
  
# roles/DEPLOY/tasks/main.yml
- Huge list of tasks

EXPECTED RESULTS
I should be able to call multiple roles, using include_role and with_items. 
So that I can deploy all the services at the same time.

ACTUAL RESULTS - When I list tasks (--list-tasks)

It does not call Nested Roles
      
playbook: deploy.yml

play #1 (all): SERVICE Deployment TAGS: []
tasks:
ServiceDeploy : Initiating Service Deployment TAGS: [ServiceDeploy]

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fddc2a47-ed8a-430a-ad6a-dd3156bdb51c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to