mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-02-12 18:49:08 +00:00
ansible plays for docker, haproxy & varnish
This commit is contained in:
20
ansible/roles/haproxy/tasks/config.yml
Normal file
20
ansible/roles/haproxy/tasks/config.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- file:
|
||||
path: "{{ haproxy_certs_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- template:
|
||||
src: haproxy.cfg.j2
|
||||
dest: "{{ haproxy_cfg_path }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
validate: "haproxy -c -f %s"
|
||||
notify: reload haproxy
|
||||
|
||||
- service:
|
||||
name: haproxy
|
||||
state: started
|
||||
Reference in New Issue
Block a user