2020-01-14 23:15:13 +00:00
|
|
|
---
|
|
|
|
title: CLI options
|
|
|
|
---
|
|
|
|
|
2020-06-03 14:23:46 +00:00
|
|
|
You can get all available CLI options by running `ansible-later --help`:
|
2020-01-14 23:15:13 +00:00
|
|
|
|
2020-06-03 14:23:46 +00:00
|
|
|
<!-- prettier-ignore-start -->
|
2020-06-07 14:39:14 +00:00
|
|
|
<!-- spellchecker-disable -->
|
2020-01-14 23:15:13 +00:00
|
|
|
{{< highlight Shell "linenos=table" >}}
|
|
|
|
$ ansible-later --help
|
2024-01-25 20:40:15 +00:00
|
|
|
usage: ansible-later [-h] [-c CONFIG] [-r DIR] [-B] [-i TAGS] [-x TAGS] [-v] [-q] [-V] [rules.files ...]
|
2020-01-14 23:15:13 +00:00
|
|
|
|
2020-06-03 14:23:46 +00:00
|
|
|
Validate Ansible files against best practice guideline
|
2020-01-14 23:15:13 +00:00
|
|
|
|
|
|
|
positional arguments:
|
|
|
|
rules.files
|
|
|
|
|
2024-01-25 20:40:15 +00:00
|
|
|
options:
|
2020-01-14 23:15:13 +00:00
|
|
|
-h, --help show this help message and exit
|
2024-01-25 20:40:15 +00:00
|
|
|
-c CONFIG, --config CONFIG
|
|
|
|
path to configuration file
|
|
|
|
-r DIR, --rules-dir DIR
|
|
|
|
directory of rules
|
|
|
|
-B, --no-builtin disables built-in rules
|
|
|
|
-i TAGS, --include-rules TAGS
|
|
|
|
limit rules to given id/tags
|
|
|
|
-x TAGS, --exclude-rules TAGS
|
|
|
|
exclude rules by given it/tags
|
2020-01-14 23:15:13 +00:00
|
|
|
-v increase log level
|
|
|
|
-q decrease log level
|
2024-01-25 20:40:15 +00:00
|
|
|
-V, --version show program's version number and exit
|
2020-01-14 23:15:13 +00:00
|
|
|
{{< /highlight >}}
|
2020-06-07 14:39:14 +00:00
|
|
|
<!-- spellchecker-enable -->
|
2020-06-03 14:23:46 +00:00
|
|
|
<!-- prettier-ignore-end -->
|