Skip to content
Snippets Groups Projects
Commit bb4a212e authored by nimrod's avatar nimrod
Browse files

Setup HAProxy after it's installed.

parent f5ba9a3b
No related branches found
No related tags found
No related merge requests found
...@@ -135,30 +135,6 @@ ...@@ -135,30 +135,6 @@
- dns - dns
- network - network
- name: Configure HAProxy
copy:
backup: true
dest: /etc/haproxy/haproxy.cfg
mode: preserve
src: haproxy.cfg
validate: haproxy -c -f %s
notify:
- Restart HAProxy
tags:
- haproxy
- web
- network
- name: Enable HAProxy
service:
enabled: true
name: haproxy
state: started
tags:
- haproxy
- web
- network
- name: Configure PF - name: Configure PF
copy: copy:
dest: /etc/pf.conf dest: /etc/pf.conf
...@@ -323,6 +299,30 @@ ...@@ -323,6 +299,30 @@
- dhcp - dhcp
- network - network
- name: Configure HAProxy
copy:
backup: true
dest: /etc/haproxy/haproxy.cfg
mode: preserve
src: haproxy.cfg
validate: haproxy -c -f %s
notify:
- Restart HAProxy
tags:
- haproxy
- web
- network
- name: Enable HAProxy
service:
enabled: true
name: haproxy
state: started
tags:
- haproxy
- web
- network
- name: Configure mail relaying - name: Configure mail relaying
lineinfile: lineinfile:
line: action "outbound" relay host host01.shore.co.il line: action "outbound" relay host host01.shore.co.il
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment