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