turkenh/ansible-interactive-tutorial
turkenh/ansible-interactive-tutorial has 1,495 GitHub stars and 203 forks. GitHot measured 0 in 7 days. Last checked 2026-11-10 03:29 UTC. Last push 2022-01-01.
Interactive Ansible tutorials with dead simple setup via Docker
측정된 스타 증가
- in 24h
- 업데이트 지연
- in 7 days
- 0
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalansible-interactive-tutorial
Interactive tutorials for Ansible
Prerequisite
Only prerequisite is docker
Requires docker version 1.9+ and tested with 1.12+
If you don't have docker installed, you can also run on http://play-with-docker.com (just click "+ ADD NEW INSTANCE" button and clone this repo there)
How to Run
./tutorial.sh
Clean up
./tutorial.sh --remove
More Details
Tutorials
Almost all of the tutorials are adapted from the great leucos/ansible-tuto repository:
1. Getting Started
2. Basic inventory
3. First modules and facts
4. Groups and variables
5. Playbooks
6. Playbooks, pushing files on nodes
7. Playbooks and failures
8. Playbook conditionals
9. Git module
10. Extending to several hosts
11. Templates
12. Variables again
13. Migrating to roles!
14. Using roles from Ansible Galaxy - Install a Jenkins server
15. Free play
You can run each lesson individually but it is highly encouraged to follow the order as most of them are built on top of the previous one!
Containers
tutorial.sh starts 4 docker containers behind the scenes. 1 for running the tutorial itself and 3 as ansible nodes which behave exactly same as (virtual or physical) machines throughout the tutorial.
ansible.tutorial is an alpine based tutorial container in which ansible and nutsh (a framework for creating interactive command line tutorials) are available.
host0.example.org, host1.example.org and host2.example.org are the Ubuntu 16.04 based containers that act as ansible nodes. These nodes were already provisioned with the ssh key of ansible.tutorial container. So that you don't have to deal with setting up keys.
Port Mapping
There are some checkpoints in the tutorials where you can check and verify your deployments. For this purpose some ports of the containers are exposed as host ports as follows:
| Container | Container Port | Host Port |
|---|---|---|
| host0.example.org | 80 | $HOSTPORT_BASE |
| host1.example.org | 80 | $HOSTPORT_BASE+1 |
| host2.example.org | 80 | $HOSTPORT_BASE+2 |
| host0.example.org | 8080 | $HOSTPORT_BASE+3 |
| host1.example.org | 30000 | $HOSTPORT_BASE+4 |
| host2.example.org | 443 | $HOSTPORT_BASE+5 |
HOSTPORT_BASE is set to 42726 by default and can be changed while starting the tutorial (in case any of the consecutive 6 ports is not available) as follows:
./tutorial.sh --remove # Make sure you shut down the previous ones
HOSTPORT_BASE=<some_other_value> ./tutorial.sh
Workspace Directory
ansible-interactive-tutorial/workspace directory on your local machine is mounted as /root/workspace inside the ansible.tutorial container. So, you can use your favorite editor on your local machine to edit files. Editing files is not necessary to follow the lessons though.
관련 프로젝트 살펴보기
sindresorhus/awesome
😎 온갖 흥미로운 주제에 관한 Awesome 목록 [참고: 기존 풀 리퀘스트를 따라잡을 여유가 생길 때까지 풀 리퀘스트가 일시적으로 비활성화되어 있습니다]
535,221 스타EbookFoundation/free-programming-books
:books: 무료로 이용할 수 있는 프로그래밍 도서
401,413 스타nilbuild/developer-roadmap
개발자의 커리어 성장을 돕는 인터랙티브 로드맵, 가이드 및 기타 교육 콘텐츠.
371,821 스타vinta/awesome-python
“Python으로 X를 하고 싶은데, 어떤 도구를 써야 할까?”에 답하는 결정판 목록.
334,054 스타