--- - name: Copy haproxy.cfg ansible.builtin.copy: src: haproxy.cfg.jinja dest: /etc/haproxy/haproxy.cfg mode: '0600' owner: root group: root notify: Reload haproxy - name: Enable and start haproxy ansible.builtin.systemd_service: name: haproxy.service state: started enabled: true