/ansible-workshop-1

Ansible Workshop - Hands-On Materials.

Primary LanguageRubyApache License 2.0Apache-2.0

Ansible Workshop - Hands-On Materials

Circle CI Build Status

Course info: http://get.soft-arch.net/ansible

Contents

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.

Usage

  1. Fork this project.

  2. Clone your fork:

    git clone https://github.com/YOUR-ACCOUNT/ansible-workshop.git
    cd ansible-workshop
    
  3. Follow the SOP to be taught in the class (a.k.a., 【圍繞在組態管理技術上的自動化手法 TM】) to go through each lab.

Note for Windows users

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】.

License

Licensed under the Apache License V2.0. See the LICENSE file for details.