Maintain containerized Ansible Automation Platform

Update, backup, restore, uninstall, or reinstall containerized Ansible Automation Platform deployments to support your automation infrastructure.

Uninstall containerized Ansible Automation Platform

Uninstall your container-based installation of Ansible Automation Platform.

Before you begin

  • You have logged in to the Red Hat Enterprise Linux host as your dedicated non-root user.

Procedure

  1. If you intend to reinstall Ansible Automation Platform and want to use the preserved databases, you must collect the existing secret keys:
    1. First, list the available secrets:
      $ podman secret list
    2. 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
  2. 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