Playbooks to request a Red Hat Product Demo System (RHPDS) Sandbox and update credentials on Ansible Controller.
controller_hostname
and controller_oauthtoken
need to be provided as extra vars or Controller Credentials. Check out Creating an OAuth 2 token.
The Ansible Controller collection (or AWX) namespace needs to be referenced.
hosts: localhost
collections:
- ansible.controller
Connect Private Automation Hub.
All dependencies are included in the Collection requirements.yml and Role requirements.yml files.
It will create a Custom Credential for Ansible Controller to store all the inputs to create a Sandbox.
It creates an RHPDS AWS Sandbox and updates its credentials in Controller. If you don't provide the custom credential as input, you can pass the variables as extra-vars.
ansible-playbook create_sandbox.yml --extra-vars "cfme_password='' cfme_username='' cfme_url='' service_catalog_id='' service_template_id=''" -v