forked from davidszegedi/cloud03
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osp-launch-role.yml
71 lines (61 loc) · 1.62 KB
/
osp-launch-role.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
67
68
69
70
71
---
- name: Launch osp roles
hosts: localhost
gather_facts: no
vars:
role_osp_project: 'false'
role_osp_user: 'false'
role_osp_facts: 'false'
role_osp_flavor: 'false'
role_osp_keypair: 'false'
role_osp_secugroup: 'false'
role_osp_network: 'false'
role_osp_instance: 'false'
tasks:
- block:
- name: create project
include_role:
name: osp/osp-project
tasks_from: create-osp-project
when: role_osp_project == 'true'
- block:
- name: create user
include_role:
name: osp/osp-user
tasks_from: create-osp-user
when: role_osp_user == 'true'
- block:
- name: gather facts
include_role:
name: osp/osp-facts
tasks_from: get-osp-facts
when: role_osp_facts == 'true'
- block:
- name: create flavor
include_role:
name: osp/osp-flavor
tasks_from: create-osp-flavor
when: role_osp_flavor == 'true'
- block:
- name: create keypair
include_role:
name: osp/osp-keypair
tasks_from: generate-keypair
when: role_osp_keypair == 'true'
- block:
- name: create secugroup
include_role:
name: osp/osp-secugroup
tasks_from: create-secugroup-and-rules
when: role_osp_secugroup == 'true'
- block:
- name: create project network
include_role:
name: osp/osp-network
when: role_osp_network == 'true'
- block:
- name: create instance
include_role:
name: osp/osp-instance
tasks_from: create-osp-instance
when: role_osp_instance == 'true'