--- - hosts: localhost gather_facts: False tasks: - name: POSITIVE test -> Remove thin volume {{ auto_prefix }}vol under pool {{ auto_prefix }}pool infini_vol: name: "{{ auto_prefix }}vol" pool: "{{ auto_prefix }}pool" state: absent user: "{{ user }}" password: "{{ password }}" system: "{{ system }}" - name: IDEMPOTENT test -> Remove volume {{ auto_prefix }}vol under pool {{ auto_prefix }}pool again infini_vol: name: "{{ auto_prefix }}vol" pool: "{{ auto_prefix }}pool" state: absent user: "{{ user }}" password: "{{ password }}" system: "{{ system }}" - name: POSITIVE test -> Remove pool {{ auto_prefix }}pool infini_pool: name: "{{ auto_prefix }}pool" state: absent user: "{{ user }}" password: "{{ password }}" system: "{{ system }}"