github.com/openshift/installer@v1.4.17/upi/openstack/down-containers.yaml (about)

     1  # Required Python packages:
     2  #
     3  # ansible
     4  # openstackclient
     5  # openstacksdk
     6  
     7  - ansible.builtin.import_playbook: common.yaml
     8  
     9  - hosts: all
    10    gather_facts: no
    11  
    12    tasks:
    13    - name: 'List the containers associated with the cluster'
    14      ansible.builtin.command:
    15        cmd: "openstack container list --prefix {{ os_infra_id }} -f value -c Name"
    16      register: container_list
    17  
    18    - name: 'Delete the containers associated with the cluster'
    19      ansible.builtin.command:
    20        cmd: "openstack container delete -r {{ container_list.stdout }}"
    21      when: container_list.stdout|length > 0