1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ---
- - name: Evaluate basic OpenStack groups
- import_playbook: evaluate_groups.yml
- - name: Evaluate remaining cluster groups
- import_playbook: ../../init/evaluate_groups.yml
- - name: Unsubscribe RHEL instances
- hosts: oo_all_hosts
- become: yes
- gather_facts: yes
- tasks:
- - name: Unsubscribe RHEL instances
- import_role:
- name: rhel_unsubscribe
- when:
- - ansible_distribution == "RedHat"
- - rhsub_user is defined
- - rhsub_pass is defined
- - name: Clean DNS entries
- hosts: localhost
- tasks:
- - name: Clean DNS entries
- import_role:
- name: openshift_openstack
- tasks_from: clean-dns.yml
- when:
- - openshift_openstack_external_nsupdate_keys is defined
- - openshift_openstack_external_nsupdate_keys.private is defined or openshift_openstack_external_nsupdate_keys.public is defined
- - name: Remove OpenStack resources
- hosts: localhost
- tasks:
- - name: retrieve cluster name from the environment if present
- set_fact:
- openshift_openstack_stack_name: "{{ lookup('env', 'OPENSHIFT_CLUSTER') | ternary (lookup('env', 'OPENSHIFT_CLUSTER'), omit) }}"
- - name: Remove OpenStack resources
- import_role:
- name: openshift_openstack
- tasks_from: unprovision.yml
|