Backup and restore options using CI/CD playbook
Backup and restore commands should not be run as jobs or templates on the Automation controller they are being used against. This makes them ideal candidates for CI/CD playbooks. These playbooks use the same configuration files from Chapter 2, Installing Ansible Automation Platform, and uses them to backup and restore an AAP installation. For demonstration purposes, these files are available in this chapter’s repository.
The playbook takes several inputs as follows:
aap_setup_down_offline_token
: Token to be used to download the setup file. It can be generated at https://access.redhat.com/management/api/.aap_setup_working_dir
: Working directory to download the setup file, create inventory, and do other work.aap_backup_dest
: Destination directory for the backup file.aap_setup_down_version
: Version of AAP to download, currently2.2
. By default, the downloader will grab the latest.
The playbook will...