1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

roles: -> tasks: for dynamic execution (avoids pages of "skipping")

This commit is contained in:
A Holt 2017-10-30 21:05:43 -04:00 committed by GitHub
parent c521520410
commit 2877d8f06c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,23 +7,63 @@
- vars/{{ ansible_local.local_facts.os_ver }}.yml - vars/{{ ansible_local.local_facts.os_ver }}.yml
- vars/local_vars.yml - vars/local_vars.yml
roles: tasks:
- { role: 0-init, tags: ['0-init'] }
- { role: 1-prep, tags: ['1-prep','platform','base'], - name: 0-init
when: ansible_local.local_facts.stage|int < 1 } include_role:
- { role: 2-common, tags: ['2-common','base'], name: 0-init
when: ansible_local.local_facts.stage|int < 2 } tags: 0-init
- { role: 3-base-server, tags: ['3-base-server','base'],
when: ansible_local.local_facts.stage|int < 3 } - name: 1-prep
- { role: 4-server-options, tags: ['4-server-options'], include_role:
when: ansible_local.local_facts.stage|int < 4 } name: 1-prep
- { role: 5-xo-services, tags: ['5-xo-services'], when: ansible_local.local_facts.stage|int < 1
when: ansible_local.local_facts.stage|int < 5 } tags: 1-prep, platform, base
- { role: 6-generic-apps, tags: ['6-generic-apps'],
when: ansible_local.local_facts.stage|int < 6 } - name: 2-common
- { role: 7-edu-apps, tags: ['7-edu-apps'], include_role:
when: ansible_local.local_facts.stage|int < 7 } name: 2-common
- { role: 8-mgmt-tools, tags: ['8-mgmt-tools'], when: ansible_local.local_facts.stage|int < 2
when: ansible_local.local_facts.stage|int < 8 } tags: 2-common, base
- { role: 9-local-addons, tags: ['9-local-addons'],
when: ansible_local.local_facts.stage|int < 9 } - name: 3-base-server
include_role:
name: 3-base-server
when: ansible_local.local_facts.stage|int < 3
tags: 3-base-server, base
- name: 4-server-options
include_role:
name: 4-server-options
when: ansible_local.local_facts.stage|int < 4
tags: 4-server-options
- name: 5-xo-services
include_role:
name: 5-xo-services
when: ansible_local.local_facts.stage|int < 5
tags: 5-xo-services
- name: 6-generic-apps
include_role:
name: 6-generic-apps
when: ansible_local.local_facts.stage|int < 6
tags: 6-generic-apps
- name: 7-edu-apps
include_role:
name: 7-edu-apps
when: ansible_local.local_facts.stage|int < 7
tags: 7-edu-apps
- name: 8-mgmt-tools
include_role:
name: 8-mgmt-tools
when: ansible_local.local_facts.stage|int < 8
tags: 8-mgmt-tools
- name: 9-local-addons
include_role:
name: 9-local-addons
when: ansible_local.local_facts.stage|int < 9
tags: 9-local-addons