-
Notifications
You must be signed in to change notification settings - Fork 59
/
playbook.yaml
90 lines (89 loc) · 2.21 KB
/
playbook.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright © 2020-2024, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
---
- name: Play for deploying Viya
hosts: localhost
tasks:
- name: Global tmp dir
tempfile:
state: directory
register: tmpdir
tags:
- install
- uninstall
- update
- onboard
- cas-onboard
- offboard
- name: Common role - task validations
include_role:
name: common
tasks_from: task-validations
tags:
- always
- name: Common role
include_role:
name: common
public: true
tags:
- install
- uninstall
- update
- onboard
- cas-onboard
- offboard
- name: jump-server role # noqa: name[casing]
include_role:
name: jump-server
when:
- JUMP_SVR_HOST is defined
- JUMP_SVR_USER is defined
- JUMP_SVR_PRIVATE_KEY is defined
- V4_CFG_MANAGE_STORAGE is defined
- V4_CFG_MANAGE_STORAGE|bool
tags:
- viya
- name: baseline role install # noqa: name[casing]
include_role:
name: baseline
when: ('baseline' in ansible_run_tags) and ('install' in ansible_run_tags)
tags:
- baseline
- name: Monitoring role - cluster
include_role:
name: monitoring
tags:
- cluster-monitoring
- cluster-logging
- name: Multi-tenancy role
include_role:
name: multi-tenancy
when: V4MT_ENABLE is defined
tags:
- multi-tenancy
- name: vdm role # noqa: name[casing]
include_role:
name: vdm
tags:
- viya
- multi-tenancy
- name: Monitoring role - namespace
include_role:
name: monitoring
tasks_from: viya-monitoring
tags:
- viya-monitoring
- name: baseline role uninstall # noqa: name[casing]
include_role:
name: baseline
when: ('baseline' in ansible_run_tags) and ('uninstall' in ansible_run_tags)
tags:
- baseline
- name: Delete tmpdir
file:
path: "{{ tmpdir.path }}"
state: absent
tags:
- install
- uninstall
- update