This repository has been archived by the owner on Feb 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
139 lines (120 loc) · 3.01 KB
/
site.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# @Author: Zak Zhu
# @Date: 2020-10-05 14:57:45
# @Last Modified by: Zak Zhu
# @Last Modified time: 2020-10-16 17:37:23
---
- name: "{{ playbook_dir | basename }}"
hosts: localhost
remote_user:
gather_facts: yes
vars:
status: "{{ ansible_local[stats_file_name]['status'] | default('0') }}"
force_handlers: no
pre_tasks:
- name: update ansible facts
setup:
gather_subset:
- "all"
- when: status == '0'
block:
- import_role:
name: pre_roles/common
tags:
- pr_r_common
- meta: flush_handlers
- import_role:
name: pre_roles/boot_param
tags:
- pr_r_boot_param
- meta: flush_handlers
- import_role:
name: pre_roles/swap_file
tags:
- pr_r_swap_file
- meta: flush_handlers
- import_role:
name: pre_roles/hostname
tags:
- pr_r_hostname
- meta: flush_handlers
- import_role:
name: pre_roles/data_volumes
tags:
- pr_r_data_volumes
- meta: flush_handlers
- import_role:
name: pre_roles/security
tags:
- pr_r_security
- meta: flush_handlers
- import_role:
name: pre_roles/install_check
tags:
- pr_r_install_check
- meta: flush_handlers
tasks:
- when: status == '0'
block:
- import_role:
name: users
tags:
- r_users
- meta: flush_handlers
- import_role:
name: resource_limits
tags:
- r_resource_limits
- meta: flush_handlers
- import_role:
name: kernel_param
tags:
- r_kernel_param
- meta: flush_handlers
- import_role:
name: mount_points
tags:
- r_mount_points
- meta: flush_handlers
- import_role:
name: oracle_env
tags:
- r_oracle_env
- meta: flush_handlers
- import_role:
name: oracle_dirs
tags:
- r_oracle_dirs
- meta: flush_handlers
- import_role:
name: pkg_reqs
tags:
- r_pkg_reqs
- meta: flush_handlers
- import_role:
name: get_software
tags:
- r_get_software
- meta: flush_handlers
- import_role:
name: response_files
tags:
- r_response_files
- meta: flush_handlers
- import_role:
name: common
tags:
- r_common
- meta: flush_handlers
- import_role:
name: oracle_login
tags:
- r_oracle_login
- meta: flush_handlers
post_tasks:
- when: status == '0'
block:
- import_role:
name: post_roles/common
tags:
- po_r_common
- meta: flush_handlers