- hosts: [{{ ip }}] sudo: yes tasks: - name: mariadb container docker: name: {{ resource_name }} image: {{ image }} state: absent