Newer
Older
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
---
# file: roles/haproxy/tasks/configure.yml
- name: "Proxy | Install SSL certificates"
copy: src={{inventory_dir}}/files/ssl/{{item}}
dest=/etc/haproxy/certs
with_items: proxy_certificates
notify: 'Proxy | Restart HAProxy'
- name: "Proxy | Create host lists"
template: src=host_list
dest=/etc/haproxy/{{item}}.list
owner=root
group=root
mode=644
when: scope == 'all'
with_items: groups['all']
notify: 'Proxy | Restart HAProxy'
- name: "Proxy | Create host ssl lists"
template: src=host_ssl_list
dest=/etc/haproxy/{{item}}.ssl.list
owner=root
group=root
mode=644
when: scope == 'all'
with_items: groups['all']
notify: 'Proxy | Restart HAProxy'
- name: "Proxy | Create empty crm lists files"
file: dest=/etc/haproxy/{{item}}.crm.list
owner=root
group=root
mode=644
state=touch
when: scope == 'all'
with_items: groups['all']
notify: 'Proxy | Restart HAProxy'
- name: "Proxy | Create config file"
template: src=haproxy_cfg
dest=/etc/haproxy/haproxy.cfg
owner=root
group=root
mode=644
when: scope == 'all'
notify: 'Proxy | Restart HAProxy'
- name: "Proxy | Install update php script"
copy: src=etc_haproxy_update_update_php
dest=/etc/haproxy/update/update.php
owner=root
group=root
mode=444
- name: "Proxy | Install update script"
template: src=update_sh
dest=/etc/haproxy/update/update.sh
owner=root
group=root
mode=700
- name: "Proxy | Install update cron"
cron: name='Update S-Verein Homepage Domains'
month='*'
day='*'
hour='*'
minute='*/1'
job='/etc/haproxy/update/update.sh >/dev/null 2>&1'