-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.yml
66 lines (57 loc) · 1.23 KB
/
build.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
54
55
56
57
58
59
60
61
62
63
64
65
66
---
- hosts: openstack
gather_facts: no
become: no
tasks:
- include_role:
name: image
vars:
action: prepare
target: openstack
os: "{{ lookup('env', 'TEST_OS') }}"
when:
- cloud_platform == "aws" or cloud_platform == "azure"
- hosts: builder
tasks:
- include_role:
name: image
vars:
action: create
target: openstack
os: "{{ lookup('env', 'TEST_OS') }}"
when:
- cloud_platform == "aws" or cloud_platform == "azure"
- hosts: openstack
gather_facts: no
become: no
tasks:
- include_role:
name: image
vars:
action: clean
target: openstack
when:
- cloud_platform == "aws" or cloud_platform == "azure"
- hosts: aws
gather_facts: yes
become: no
tasks:
- include_role:
name: image
vars:
action: upload
target: "{{ cloud_platform }}"
os: "{{ lookup('env', 'TEST_OS') }}"
when:
- cloud_platform == "aws"
- hosts: esxi
gather_facts: no
become: no
tasks:
- include_role:
name: image
vars:
action: build
os: "{{ lookup('env', 'TEST_OS') }}"
when:
- cloud_platform == "esxi"