dotfiles/.ansible/roles/haproxy_server/tasks/main.yaml

24 lines
441 B
YAML
Raw Permalink Normal View History

2019-10-12 13:00:22 +01:00
- name: 'HAProxy'
tags:
- install
- haproxy
block:
- name: 'HAProxy: package'
package:
name: 'haproxy'
state: latest
become: yes
- name: 'HAProxy: Config'
copy:
dest: '/etc/haproxy/haproxy.cfg'
src: 'files/haproxy.cfg'
become: yes
- name: 'HAProxy: Service'
systemd:
name: 'haproxy'
state: started
enabled: yes
become: yes