Course info: http://get.soft-arch.net/ansible
Case study: WordPress.
- Basic automation via shell script.
- Step-by-step rewrite to Ansible playbooks.
- Refactoring.
- Ansible Galaxy.
- Continuous integration of infrastructure via Travis CI and CircleCI.
- Continuous deployment demo with canary deployment.
-
Fork this project.
-
Clone your fork:
git clone https://github.com/YOUR-ACCOUNT/ansible-workshop.git cd ansible-workshop
-
Follow the SOP to be taught in the class (a.k.a., 【圍繞在組態管理技術上的自動化手法 TM】) to go through each lab.
If you're using platforms without native support for Ansible (e.g., on Windows), use the following procedure to gain access to the Ansible control machine.
First, on the host machine, do the following to login to the Ansible control machine:
cd control-machine
vagrant up
vagrant ssh
Once you login to the guest machine (i.e., the Ansible control machine within a VM), you'll see the whole project files in the VM's /vagrant
directory:
cd /vagrant
ls -al
For step-by-step instruction, watch my 14-minute video: 【在 Windows 上也能使用 Ansible】.
Licensed under the Apache License V2.0. See the LICENSE file for details.