Template created to install haproxy
This commit is contained in:
14
roles/proxy/tasks/main.yml
Normal file
14
roles/proxy/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
#This playbook will install haproxy and configure for rails servers
|
||||
#
|
||||
- name: update apt cache
|
||||
apt: update_cache=yes cache_valid_time=3600
|
||||
|
||||
- name: install haproxy
|
||||
apt: name=haproxy state=present
|
||||
|
||||
- name: Create haproxy config file
|
||||
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
|
||||
|
||||
- name: Restart haproxy
|
||||
service: name=haproxy state=restarted
|
||||
Reference in New Issue
Block a user