-
Notifications
You must be signed in to change notification settings - Fork 423
/
free_waiter.yml
57 lines (46 loc) · 2.04 KB
/
free_waiter.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
---
- hosts: all
gather_facts: false
strategy: free
tasks:
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='1: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='2: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='3: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='4: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='5: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='6: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='7: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='8: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='9: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- action: wait_for timeout={{ 5|random }}
register: waited
- debug: "msg='10: {{ waited.elapsed }} seconds'"
- set_fact: wait_counter={{ waited.elapsed|int + wait_counter|int }}
- debug: msg="{{ inventory_hostname }} waited for {{ wait_counter }} seconds."