Maintain containerized Ansible Automation Platform
Update, backup, restore, uninstall, or reinstall containerized Ansible Automation Platform deployments to support your automation infrastructure.
Uninstall your container-based installation of Ansible Automation Platform.
- You have logged in to the Red Hat Enterprise Linux host as your dedicated non-root user.
- If you intend to reinstall Ansible Automation Platform and want to use the preserved databases, you must collect the existing secret keys:
- First, list the available secrets:
- Next, collect the secret keys by running the following command:
$ podman secret inspect --showsecret <secret_key_variable> | jq -r .[].SecretData
For example:
$ podman secret inspect --showsecret controller_secret_key | jq -r .[].SecretData
- Run the
uninstall playbook:
$ ansible-playbook -i inventory ansible.containerized_installer.uninstall
- This stops all systemd units and containers and then deletes all resources used by the containerized installer such as:
- configuration and data directories and files
- systemd unit files
- Podman containers and images
- RPM packages
- To keep container images, set the
container_keep_images parameter to true.
$ ansible-playbook -i inventory ansible.containerized_installer.uninstall -e container_keep_images=true
- To keep PostgreSQL databases, set the
postgresql_keep_databases parameter to true.
$ ansible-playbook -i inventory ansible.containerized_installer.uninstall -e postgresql_keep_databases=true
Reinstall a containerized deployment after uninstalling and preserving the database.
Follow the steps in Install containerized Ansible Automation Platform and include the existing secret key value in the playbook command:
$ ansible-playbook -i inventory ansible.containerized_installer.install -e controller_secret_key=<secret_key_value>