Playbooks to request a Red Hat Product Demo System (RHPDS) Sandbox and update credentials on Ansible Tower.
tower_hostname
and tower_oauthtoken
need to be provided as extra vars or Tower Credentials. Check out Creating an OAuth 2 token.
The Ansible Tower collection (or AWX) namespace needs to be referenced.
hosts: localhost
collections:
- ansible.tower
All dependencies are included in the Collection requirements.yml and Role requirements.yml files.
It will create a Custom Credential for Ansible Tower to store all the inputs to create a Sandbox.
It creates a RHPDS AWS Sandbox and updates its credentials in Tower. 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