This activity demonstrates the creation of a simple ansible playbook filled with various Ansible modules.
Objectives
- Create Ansible Playbook to document the workflow.
Tasks
- Fork this repository https://github.com/ajcanlas-tip/sysad2-12021.git
- Clone your newly forked repository.
- Make a new branch named “activity4” from master branch using git branch activity4 and git checkout activity4
- Note: To Prevent Conflicts Create a directory with your username as its name and go inside of it, and create a directory called “activity4” and go inside it.
- Make a new new remote upstream with git remote add upstream https://github.com/ajcanlas-tip/sysad2-12021.git
- Create a playbook that install java via package manager , and install boto,ansible,and openstack py packages using pip in both Ubuntu and Centos.
- add,commit and push it to your activity4 branch
- Request a pull request for the master branch in https://github.com/ajcanlas-tip/sysad2-12021.git and activity4 branch of your forked repository.
Output
jpcabral-tip/activity4/ansible.cfg
jpcabral-tip/activity4/inventory
jpcabral-tip/activity4/playbook.yaml
Execute using the following command to run the playbook:
As seen on Github.