rhaap_absent_organization
Remove the organization from rhaap, using the infra.aap_configuration collection.
This will create the vars needed by the infra.aap_configuration collection to remove the organization
from rhaap.
This is much faster that updating the files and run the configuration as code pipeline.
The files are cleaned after this.
---
- name: Create gateway_users variable
ansible.builtin.set_fact:
aap_user_accounts: "{{ [] + [{ 'username': org_admin_user, 'state': 'absent' }] }}"
aap_hostname: "{{ rhaap_hostname }}"
- name: Run aap_user_accounts role to remove the user
ansible.builtin.include_role:
name: infra.aap_configuration.gateway_users
- name: Absent the Organization
ansible.builtin.set_fact:
aap_organizations:
- name: "{{ organization_long_name | upper }}"
state: absent
- name: Run gateway_organizations role to remove the organization
ansible.builtin.include_role:
name: infra.aap_configuration.gateway_organizations
- name: "Absent the gateway_authenticator_maps for the Organization"
ansible.builtin.set_fact:
gateway_authenticator_maps:
- name: "{{ organization_long_name | upper }}-members"
authenticator: Auth LDAP container
state: absent
- name: "{{ organization_long_name | upper }}-admins"
authenticator: Auth LDAP container
state: absent
- name: "{{ organization_long_name | upper }}-admin-team"
authenticator: Auth LDAP container
state: absent
- name: "{{ organization_long_name | upper }}-developers"
authenticator: Auth LDAP container
state: absent
- name: "{{ organization_long_name | upper }}-operators"
authenticator: Auth LDAP container
state: absent
- name: Run gateway_authenticator_maps role to remove the authentication_maps
ansible.builtin.include_role:
name: infra.aap_configuration.gateway_authenticator_maps
- name: "Absent the gateway_teams for the Organization"
ansible.builtin.set_fact:
aap_teams:
- name: "LDAP_{{ organization_short_name | upper }}_Admins"
organization: "{{ organization_long_name | upper }}"
state: absent
- name: "LDAP_{{ organization_short_name | upper }}_Developers"
organization: "{{ organization_long_name | upper }}"
state: absent
- name: "LDAP_{{ organization_short_name | upper }}_Operators"
organization: "{{ organization_long_name | upper }}"
state: absent
- name: Run gateway_teams role to remove the teams
ansible.builtin.include_role:
name: infra.aap_configuration.gateway_teams