ansible-doctor/docs/content/usage/_index.md

38 lines
1.4 KiB
Markdown
Raw Normal View History

2020-01-16 11:27:46 +01:00
---
title: Usage
---
```Shell
ansible-doctor FOLDER
```
2020-06-02 22:17:46 +02:00
If you don't pass a folder to *ansible-doctor* your current working directory will be used. The first step is to identify if the given folder is an Ansible role. This check is very simple, if the folder contains a subfolder called `tasks` is MUST be an Ansible role! :)
2020-01-16 11:27:46 +01:00
After the successful check, *ansible-doctor* will try to read some static files into a dictionary:
* defaults/main.yml
* meta/main.yml
This will be the base result set which is used as data source for every output template. Without any work, you will get at least a documentation about available variables and some meta information. Theses basic information can be expanded with a set of available annotations. In general, an annotation is a comment with an identifier. This identifier is followed by colon separated options and ends with a value.
2020-06-02 22:17:46 +02:00
<!-- markdownlint-disable -->
2020-01-16 11:27:46 +01:00
{{< highlight Yaml "linenos=table" >}}
# @identifier option1:option2: <value>
# @var docker_registry_password:example: "%8gv_5GA?"
# @var docker_registry_password:description: Very secure password to login to the docker registry
# @var docker_registry_password:description: >
2020-06-02 22:17:46 +02:00
# You can also write it as multi line description
2020-01-16 11:27:46 +01:00
# Very secure password to login to the docker registry.
# @end
docker_registry_password: "secret"
{{< /highlight >}}
2020-06-02 22:17:46 +02:00
<!-- markdownlint-enable -->
2020-01-16 11:27:46 +01:00
2020-06-02 22:17:46 +02:00
These list of predefined identifiers is currently available:
2020-01-16 11:27:46 +01:00
* @meta
* @todo
* @var
* @tag