@@ -2,3 +2,9 @@
|
||||
Ansible Simple Training
|
||||
|
||||
Start with [lessons/](lessons/)
|
||||
|
||||
ssh to your machine
|
||||
install ansible
|
||||
check ansible inventory
|
||||
few ad-hoc commands
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ During these lessons, you will be ask to use ansible to configure both `localhos
|
||||
Install ansible on `localhost`
|
||||
|
||||
```
|
||||
apt-get install ansible
|
||||
# Figure out the command to do that
|
||||
```
|
||||
|
||||
# First use
|
||||
@@ -67,7 +67,7 @@ ansible101
|
||||
Q: what command can you use to get the IP of your machine?
|
||||
|
||||
## Ad-hoc setup
|
||||
The `setup`module is a builtin module that collects data (also known as `facts`) on hosts.
|
||||
The `setup` module is a builtin module that collects data (also known as `facts`) on hosts.
|
||||
These data can then be used as variables in your future playbooks (we will see that later).
|
||||
|
||||
```
|
||||
|
||||
@@ -55,11 +55,11 @@ apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||
title.print "Clone ansible-training"
|
||||
|
||||
cd /root/
|
||||
git clone https://github.com/arnaudmorin/ansible-training.git
|
||||
git clone https://github.com/arnaudmorin/trainings.git
|
||||
|
||||
title.print "Building docker image 'demo'"
|
||||
|
||||
cd /root/ansible-training/docker
|
||||
cd /root/trainings/ansible/training/docker
|
||||
docker build -t demo .
|
||||
|
||||
#NOTE(arnaud) commented because this is something I want the student to do
|
||||
|
||||
Reference in New Issue
Block a user