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