-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-proxmox.yml
50 lines (45 loc) · 1.05 KB
/
init-proxmox.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
---
- hosts: localhost
- mains
gather_facts: false
any_errors_fatal: true
become: true
vars:
delegate_facts_host: true
pre_tasks:
- name: set initialize 'In Progress'
run_once: true
set_stats:
data:
installer_phase_initialize:
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: initialize-base
tags:
- always
post_tasks:
- name: set initialize 'Complete'
run_once: true
set_stats:
data:
installer_phase_initialize:
status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"