Chapter 6. Uninstalling the Ansible plug-ins from a Helm installation on OpenShift Container Platform
To uninstall the Ansible plug-ins, you must remove any software templates that use the ansible:content:create action from Red Hat Developer Hub, and remove the plug-ins configuration from the Helm chart in OpenShift.
6.1. Uninstalling a Helm chart installation Copy linkLink copied to clipboard!
To uninstall the Ansible plug-ins from a Helm chart installation, you remove templates using the ansible:content:create action first. Then, you delete the plug-in configuration from the Helm chart YAML, remove the extraContainers section, and delete the Ansible block from the custom ConfigMap. Finally, you restart the deployment.
Procedure
-
In Red Hat Developer Hub, remove any software templates that use the
ansible:content:createaction. -
In the OpenShift Developer UI, navigate to
. Remove the Ansible plug-ins configuration under the
pluginssection.global: dynamic: plugins: - disabled: false package: 'oci://registry.redhat.io/ansible-automation-platform/automation-portal:2.1!ansible-plugin-backstage-rhaap' pluginConfig: ... - disabled: false package: 'oci://registry.redhat.io/ansible-automation-platform/automation-portal:2.1!ansible-plugin-scaffolder-backend-module-backstage-rhaap' pluginConfig: ...For HTTP plug-in registry, remove the
http://plugin-registry:8080/...entries instead.Remove the
extraContainerssection.upstream: backstage: ... extraContainers: - command: - adt - server image: >- registry.redhat.io/ansible-automation-platform-25/ansible-dev-tools-rhel8:latest imagePullPolicy: IfNotPresent name: ansible-devtools-server ports: - containerPort: 8000- Click .
-
Edit your custom Red Hat Developer Hub config map, for example
app-config-rhdh. -
Remove the
ansiblesection. - Restart the Red Hat Developer Hub deployment.
If you used OCI delivery, delete the registry auth secret:
oc delete secret <deployment-name>-dynamic-plugins-registry-authIf you used the HTTP plug-in registry method, remove the plug-in registry application:
oc delete all -l app=plugin-registry