summaryrefslogtreecommitdiff
path: root/roles/haproxy/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/haproxy/tasks/main.yml')
-rw-r--r--roles/haproxy/tasks/main.yml37
1 files changed, 0 insertions, 37 deletions
diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml
deleted file mode 100644
index 2161b3b..0000000
--- a/roles/haproxy/tasks/main.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-- name: install haproxy
- apt:
- name: haproxy
-
-- name: create config dir
- file:
- state: directory
- path: "{{ item }}"
- owner: root
- group: root
- mode: 0755
- with_items:
- - /etc/haproxy
-
-- name: install haproxy config
- template:
- src: haproxy.cfg.j2
- dest: /etc/haproxy/haproxy.cfg
- owner: root
- group: root
- mode: 0644
-
-- name: install TLS certificate
- copy:
- content: "{{ tls_certificate }}"
- dest: /etc/ssl/ick.pem
- owner: root
- group: root
- mode: 0600
-
-- name: enable and start haproxy
- service:
- name: "{{ item }}"
- state: restarted
- enabled: yes
- with_items:
- - haproxy