Skip to content

Commit ac3bc73

Browse files
committed
render defeault haproxy environment variable
1 parent 885e733 commit ac3bc73

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

roles/haproxy/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
file: path=/etc/haproxy state=directory owner=root mode=0700
1717

1818
- name: create haproxy environment file
19-
file: path=/etc/default/haproxy state=touch mode=0644
19+
copy:
20+
dest: /etc/default/haproxy
21+
mode: 0644
22+
content: |
23+
OPTIONS=
2024
2125
- name: create haproxy systemd service
2226
copy: src=haproxy.svc dest={{ systemd_dir }}/haproxy.service
@@ -109,4 +113,4 @@
109113
systemd: name=haproxy state=reloaded enabled=yes daemon_reload=yes
110114

111115

112-
...
116+
...

0 commit comments

Comments
 (0)