Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 3.03 KB

setup.md

File metadata and controls

77 lines (53 loc) · 3.03 KB

One Time Setup

Here are the setup directions you have to perform one time for the ../provisioner.

Table Of Contents

Setup

  1. Create an Amazon AWS account.

  2. Create an Access Key ID and Secret Access Key. Save the ID and key for later.

  • New to AWS and not sure what this step means? Click here
  1. Install the following packages using dnf
[root@centos ~]# dnf install python3-boto \
python3-boto3 \
python3-netaddr \
python3-passlib \
python3-pywinrm \
python3-requests \
python3-requests-credssp

Are you using Automation Controller (formerly Ansible Tower)? Automation Controller Instructions

  1. Set your Access Key ID and Secret Access Key from Step 2 under ~/.aws/credentials
[root@centos ~]# cat ~/.aws/credentials
[default]
aws_access_key_id = ABCDEFGHIJKLMNOP
aws_secret_access_key = ABCDEFGHIJKLMNOP/ABCDEFGHIJKLMNOP
  1. Clone the workshops repo:

If you haven't done so already make sure you have the repo cloned to the machine executing the playbook

    git clone https://github.com/ansible/workshops.git
    cd workshops/
  1. Run the requirements.yml file to ensure all the Ansible collection prerequisites are met.   ansible-galaxy collection install -r requirements.yml 

  2. Some of the workshops require certain images provided via the AWS marketplace:

Automation Controller Instructions

Are you using Red Hat Ansible Automation Controller to provision Ansible Automation Workshops? (e.g. is your control node Ansible Automation Controller?) Make sure to use umask for the installation of boto3 on the control node. https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/virtualenv.html

[user@centos ~]$ sudo -i
[root@centos ~]# source /var/lib/awx/venv/ansible/bin/activate
[root@centos ~]# umask 0022
[root@centos ~]# dnf install -y python3-boto3
[root@centos ~]# deactivate

Getting Help

Please file issues on Github. Please fill out all required information. Your issue will be closed if you skip required information in the Github issues template.

Ansible-Workshop-Logo.png