-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.yml
41 lines (35 loc) · 832 Bytes
/
update.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
---
- hosts: localhost,localwinrm
connection: local
tasks:
- name: include devbootstrap
include_role:
name: devbootstrap
- name: set configured roles empty
set_fact:
configured_roles: "{{ roles | default({}) }}"
tags:
- always
- name: fetch external configured roles
include_role:
name: fetch_external
loop: "{{ external.repos }}"
loop_control:
loop_var: repo
tags:
- always
when:
- external is defined
- external.repos is defined
- name: configured roles
debug:
var: configured_roles
tags:
- always
- name: include all configured roles
include_tasks: include_tasks/update_configured_role.yml
loop: "{{ configured_roles | by_role_weight }}"
loop_control:
loop_var: configured_role
tags:
- always