-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsmb.yml
52 lines (43 loc) · 1019 Bytes
/
smb.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
---
- hosts:
- smbs
gather_facts: false
any_errors_fatal: true
become: true
vars:
delegate_facts_host: True
pre_tasks:
- name: set samba setup 'In Progress'
run_once: true
set_stats:
data:
installer_phase_samba:
status: "In Progress"
start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
- name: gather facts
setup:
when:
- not delegate_facts_host | bool
tags:
- always
- name: gather and delegate facts
setup:
delegate_to: "{{ item }}"
delegate_facts: True
with_items: "{{ groups['all'] }}"
run_once: true
when:
- delegate_facts_host | bool
tags:
- always
tasks:
- import_role:
name: smb
post_tasks:
- name: set samba setup 'Complete'
run_once: true
set_stats:
data:
installer_phase_samba:
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"