Commit bb4a212e authored by nimrod's avatar nimrod
Browse files

Setup HAProxy after it's installed.

parent f5ba9a3b
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -135,30 +135,6 @@
    - dns
    - 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
  copy:
    dest: /etc/pf.conf
@@ -323,6 +299,30 @@
    - dhcp
    - 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
  lineinfile:
    line: action "outbound" relay host host01.shore.co.il