How To Create an Ansible Playbook to Configure HAProxy
This is the continuation for Setup a simple HAproxy config
It explains how to create an Ansible playbook to automate the haproxy configuration.
If you’d like to find out more about Ansible you can read up on it on their website: http://www.ansible.com
--- # Set up and configure an HaProxy server (Ubuntu flavor) - name: haproxy hosts: all user: userwithsudoaccess sudo: True tags: haproxy vars_files: - "vars/main.yml" tasks: # haproxy package for Ubuntu - include: tasks/haproxy-apt.
[]