Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 927 Bytes

steps.md

File metadata and controls

36 lines (31 loc) · 927 Bytes

Ansible workshop

These are the steps we will be following.

Setup

Install vagrant and virtualbox. Clone the repo via git clone https://github.com/CPT-DevOps/AnsibleWorkshop.git' Goto the directory cd AnsibleWorkshop`

Lab 01

git checkout tags/Lab01
vagrant up
vagrant ssh ansible
/vagrant/install_ansible.sh
exit

Lab 02

git checkout tags/Lab02
vagrant up
vagrant ssh ansible
cd /ansible
ansible -i dev all -m ping -> this will error due to permissions
ansible-playbook -i dev bootstrap.yml --ask-pass --ask-su-pass --user=vagrant
ansible -i dev all -m ping -> this will now work

Lab 03

git checkout tags/Lab03
vagrant up
cd /ansible/
ansible-galaxy install jdauphant.nginx --roles-path=roles
ansible-playbook -i dev site.yml

Lab 04

git checkout tags/Lab04
vagrant up
cd /ansible/
ansible-playbook -i dev site.yml