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