--- - name: ssl-cert package is installed apt: name: ssl-cert state: installed tags: - haproxy - packages - include: packages_jessie_backports.yml when: ansible_distribution_release == "jessie" and haproxy_jessie_backports - name: Install HAProxy package apt: name: haproxy state: installed tags: - haproxy - packages - name: Copy HAProxy configuration template: src: "{{ item }}" dest: /etc/haproxy/haproxy.cfg force: yes with_first_found: - "templates/haproxy/haproxy.{{ inventory_hostname }}.cfg.j2" - "templates/haproxy/haproxy.{{ host_group }}.cfg.j2" - "templates/haproxy/haproxy.default.cfg.j2" - "haproxy.default.cfg.j2" notify: reload haproxy tags: - haproxy - config - include: nagios.yml