-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
51 lines (46 loc) · 1.05 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
---
- 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
tasks:
- when: status == '0'
block:
- import_role:
name: get_pkg
tags:
- r_get_pkg
- meta: flush_handlers
- import_role:
name: common
tags:
- r_common
- meta: flush_handlers
post_tasks:
- when: status == '0'
block:
- import_role:
name: post_roles/common
tags:
- po_r_common
- meta: flush_handlers
- import_role:
name: post_roles/clean
tags:
- po_r_clean
- meta: flush_handlers