The activity demonstrates the use of Ansible to automate conteinerization through building a Dockerfile using ansible. The activity demonstrates this aspect with the installation and configuration of LAMP stack in a conteinerzied environment.
Objectives
Create a Dockerfile and form a workflow using Ansible as Infrastructure as Code (IaC) to enable Continuous Delivery process.
Tasks
Fork this repository https://github.com/ajcanlas-tip/sysad2-12021.git
Clone your newly forked repository.
Make a new branch named “activity8” from master branch using git branch activity8 and git checkout activity8
Make a new remote upstream with git remote add upstreamhttps://github.com/ajcanlas-tip/sysad2-12021.git
Install Docker and enable the docker socket.
Add to docker group to your current user.
Create a Dockerfile to install web and db server
Install and build the Dockerfile using Ansible.
add,commit and push it to your activity8 branch
Request a pull request for the master branch in https://github.com/ajcanlas-tip/sysad2-12021.git and activity8 branch of your forked repository