- hosts: [service/haproxy] sudo: yes tasks: - shell: docker rm -f {{ name }} || true