- hosts: localhost tasks: - name: "haproxy/service : Enable haproxy service" service: name: haproxy state: started enabled: true