-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
53 lines (50 loc) · 1.24 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- name: DotFiles Config
hosts: localhost
connection: local
tasks:
- name: Run requried roles
ansible.builtin.include_role:
name: "{{ roles_item }}"
loop_control:
loop_var: roles_item
with_items: "{{ required_roles }}"
when: required_roles is defined
tags:
- always
- name: Run work roles
ansible.builtin.include_role:
apply:
tags:
- "{{ role_name }}"
name: "{{ role_name }}"
public: yes
loop_control:
loop_var: role_name
with_items: "{{ work_dev_env.roles }}"
tags:
- work
- name: Run private roles
ansible.builtin.include_role:
apply:
tags:
- "{{ role_name }}"
name: "{{ role_name }}"
loop_control:
loop_var: role_name
with_items: "{{ private_dev_env.roles }}"
tags:
- private
- name: Run cloud dev-env setup roles
ansible.builtin.include_role:
apply:
tags:
- "{{ role_name }}"
name: "{{ role_name }}"
vars:
roleVars: rolesVars["{{ role_name }}"]
loop_control:
loop_var: role_name
with_items: "{{ cloud_dev_env.roles }}"
tags:
- cloud