Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/books/learning_ansible/01-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ test.yml
8:1 error syntax error: could not find expected ':' (syntax)
```

## Exercices results
## Exercises results

* Create the groups Paris, Tokio, NewYork
* Create the user `supervisor`
Expand Down
6 changes: 3 additions & 3 deletions docs/books/learning_ansible/02-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Use of a stored variable:

The strings that make up the stored variable can be accessed via the `stdout` value (which allows you to do things like `homes.stdout.find("core") != -1`), to exploit them using a loop (see `loop`), or simply by their indices as seen in the previous example.

### Exercices
### Exercises

* Write a playbook `play-vars.yml` that prints the distribution name of the target with its major version, using global variables.

Expand Down Expand Up @@ -269,7 +269,7 @@ Let's see this through a concrete example, showing the management of the system

Many things can be done with the loops. You will discover the possibilities offered by loops when your use of Ansible pushes you to use them in a more complex way.

### Exercices
### Exercises

* Display the content of the `service` variable from the previous exercise using a loop.

Expand Down Expand Up @@ -350,7 +350,7 @@ You will probably have to test that a variable exists to avoid execution errors:
when: myboolean is defined and myboolean
```

### Exercices
### Exercises

* Print the value of `service.web` only when `type` equals to `web`.

Expand Down