sudo apt-get updpate
sudo apt-get install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible
ansible --version
- IT automation and orchestration engine meaning...
- ansible is a simple automation language that allows you to describe an IT application infastructure with playbooks
- automation engine runs the playbooks
- Ansible is Agentless meaning...
- no agents or softwares need to be installed on the systems your automating on, only the control node needs to have ansible installed
- ansible is not painful to read- very simpple syntax
- ansible can be powerful
ansible -m
ansible-playbook sample_playbook.yml
Ansible Tower
https://www.tricksofthetrades.net/2017/10/02/ansible-local-playbooks/
- all files relevant to CRUD operations
- PHP dockerfile
- mySQL dockerfile
- create user and create data sql file
- an ansible script to build two images, two containers a network and link containers.
- run by ansible-playbook -K buildContainer-playbook.yml
- an ansible script that verifies the client ansible is deploying to- in this repo local
- a bash script to clean docker containers and images for the sake of building/rebuilding images and containers to get it right.
- clone the repo
- run the buildContainer-playbook.yml file
- navigate to your browswer and type localhost:8080 in your search bar