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