======================== Ansible Tower Config ===================================
-
From the cloned repo run
site-config-tower.yml
playbook to create job templates and workflow template.
bastion]# copy your generated pem file to /root/.ssh/mykey.pem bastion]# git clone https://github.com/naikmanoj77/ansible_advance_homework.git bastion]# cd bastion]# pwd (/root) bastion]# cat task.sh
cd /root/ansible_advance_homework
export TOWER_GUID=< tower guid >
export OSP_GUID= < open stack server id >
export OPENTLC_LOGIN= < open stack login name >
export OPENTLC_PASSWORD= < open stack password >
export GITHUB_REPO=https://github.com/naikmanoj77/ansible_advance_homework_manoj.git
export JQ_REPO_BASE=http://www.opentlc.com/download/ansible_bootcamp
export REGION=us-east-1
export RH_MAIL_ID=< compony mail id >
SSK_KEY=/root/.ssh/mykey.pem
#ansible-playbook site-setup-workstation.yml -e OSP_GUID=${OSP_GUID} --private-key=${SSK_KEY} -u
bastion]# sh /root/task.sh
While running the task.sh might be you will get some error of package installation. which need to fix the repository on workstation server and rerun the script. once the script is completed successfully, kindly follow the below tasks on tower. login to the tower using weblink. go to the Templates. Run the cicd_workflow tasks to complete the homework. Thanks & Regards Manoj