github.com/openshift/installer@v1.4.17/upi/openstack/down-security-groups.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 security groups'
    14      ansible.builtin.command:
    15        cmd: "openstack security group list --tags {{ cluster_id_tag }} -f value -c ID"
    16      register: security_groups
    17  
    18    - name: 'Remove the cluster security groups'
    19      ansible.builtin.command:
    20        cmd: "openstack security group delete {{ item.1 }}"
    21      with_indexed_items: "{{ security_groups.stdout_lines }}"