HAProxy: packages only

This is just the foundation of a much more customized HAProxy role.
It barely installs the package and provides handlers
This commit is contained in:
Jérémy Lecour 2016-12-29 17:25:01 +01:00 committed by Jérémy Lecour
parent 860fd701d8
commit 999e98cc29
5 changed files with 58 additions and 0 deletions

38
haproxy/README.md Normal file
View file

@ -0,0 +1,38 @@
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

View file

@ -0,0 +1,2 @@
---
# defaults file for haproxy

10
haproxy/handlers/main.yml Normal file
View file

@ -0,0 +1,10 @@
---
- name: reload haproxy
service:
name: haproxy
state: reloaded
- name: restart haproxy
service:
name: haproxy
state: restarted

6
haproxy/tasks/main.yml Normal file
View file

@ -0,0 +1,6 @@
---
# tasks file for haproxy
- name: Install packages
apt:
name: haproxy
state: installed

2
haproxy/vars/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# vars file for haproxy