1
0
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
This commit is contained in:
Arnaud Morin
2022-01-08 20:56:26 +01:00
parent 8e7788fed2
commit d37781f378
5 changed files with 164 additions and 4 deletions

View File

@@ -2,3 +2,9 @@
Ansible Simple Training
Start with [lessons/](lessons/)
ssh to your machine
install ansible
check ansible inventory
few ad-hoc commands

View File

@@ -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).
```

View File

@@ -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