Skip to content
Merged
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
14 changes: 14 additions & 0 deletions docs/books/learning_ansible/01-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,20 @@ You can check the syntax of your playbook:
$ ansible-playbook --syntax-check play.yml
```

You can also use a "linter" for yaml:

```
$ dnf install -y yamllint
```

then check the yaml syntax of your playbooks:

```
$ yamllint test.yml
test.yml
8:1 error syntax error: could not find expected ':' (syntax)
```

## Exercices results

* Create the groups Paris, Tokio, NewYork
Expand Down