This role will help to download the AAP installer as well as uploading it to Satellite. After Execution, the files will be contained on the directory data. E.g.:
$ ls data
ansible-automation-platform-latest-bundle-installer.tar.gz ansible-automation-platform-latest-installer.tar.gz ansible-automation-platform-setup-2.2.0-6.tar.gz ansible-automation-platform-setup-bundle-2.2.0-6.tar.gz
$
This role requires the following variables.
- offline_token
- Acquire your token at https://access.redhat.com/management/api/ ( https://access.redhat.com/articles/3626371 )
Optional Variables
- requires_satellite (Default: False)
- When setting this variable to True, the variables below become mandatory
- satellite_user
- satellite_password
- satellite_server
- satellite_validate_certs (Default: False)
- satellite_organization
- satellite_repository
- satellite_product
- satellite_content_view_name
You can find a vars file example at installer_dowloader/templates/vars.yml.j2.
---
- name: Downloader for AAP installers
hosts: localhost
vars_files:
- vars.yml
roles:
- { role: lucas_benedito.installer_downloader }
In case you wish to change the downloaded version, set the variable aap_version in vars.yml with the desired repository name.
E.g.: AAP 2.0 E.A
aap_version: ansible-automation-platform-2.0-early-access-for-rhel-8-x86_64-files
AAP 2.1
aap_version: ansible-automation-platform-2.1-for-rhel-8-x86_64-files
AAP 2.2
aap_version: ansible-automation-platform-2.2-for-rhel-8-x86_64-files
AAP 2.2 - RHEL 9
aap_version: ansible-automation-platform-2.2-for-rhel-9-x86_64-files
AAP 2.3
aap_version: ansible-automation-platform-2.3-for-rhel-8-x86_64-files
AAP 2.3 - RHEL 9
aap_version: ansible-automation-platform-2.3-for-rhel-9-x86_64-files
To find the repo name, you may verfy it with the following command in a registered system:
subscription-manager repos |grep ansible-automation-platform
MIT / BSD
Lucas Benedito (lbenedit@redhat.com)