ansible-mkdocs-0.0.2
توضیحات
Auto-generate ansible role documentation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ansible-mkdocs-0.0.2 |
| نام | ansible-mkdocs |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Theo "Bob" Massard |
| ایمیل نویسنده | tbobm@protonmail.com |
| آدرس صفحه اصلی | https://github.com/tbobm/ansible-mkdocs |
| آدرس اینترنتی | https://pypi.org/project/ansible-mkdocs/ |
| مجوز | MIT |
# ansible-document
Automatically document ansible roles.
## Concept
Generate documentation automatically by looking up a role's content.
## Usage
```console
$ ansible-mkdocs path/to/role
# ex:
$ ansible-mkdocs examples/install_gitlab
name | value | location
------|------|------
gitlab_package_script_url | https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | vars/main.yml
gitlab_interface | {{ ansible_default_ipv4['interface'] }} | defaults/main.yml
gitlab_addr | {{ hostvars[inventory_hostname]['ansible_' + gitlab_interface]['ipv4']['address'] }} | defaults/main.yml
gitlab_install | yes | defaults/main.yml
```
## How does it work?
- Generate a list with modules and their values
- Example: copy will be used, register the mode, required, ...
- Lookup every directory (files, tasks, vars, ...) and fetch information
- For every directory, generate the associated template
- Aggregate every generated templates
- Add metadata
- Has tests
- Has molecule
- Meta from meta/
- Output markdown
نیازمندی
| مقدار | نام |
|---|---|
| >=5.4.1,<6.0.0 | PyYAML |
| >=7.1.2,<8.0.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl ansible-mkdocs-0.0.2:
pip install ansible-mkdocs-0.0.2.whl
نصب پکیج tar.gz ansible-mkdocs-0.0.2:
pip install ansible-mkdocs-0.0.2.tar.gz