Variable checker for ansible playbooks
Project description
ansiblevarchecker
CLI to check what vars are defined / used to find undefined or extra vars not documented.
Based on source for ansible 2.9 and striped down and modified version of jinja2schema.
Known Issues
- Sub attributes of a dictionary are marked as defined if a different sub attribute is set e.g
# Setting
dict:
sub: yay
# Will cause the use of the following undefined var to be marked as defined
{{ dict.undefined }}
-
Setting variables in jinja2 templates are seen as variable usage and will be marked as undefined if they have not been registered outside of the jinja2 template
-
Because of the removed scalar typing (to fix issues with filter discovery and other edge cases), infer-ing assumes all if statements evaluate to a boolean which can fail when actually run. This is out of scope of what avc is meant to do and is expected behavior (aka, test your code before pushing)
-
Python 3.6.x isn't tested and isn't 100% supported due to https://www.python.org/dev/peps/pep-0538/ being introduced min 3.7. 3.6 can still be configured to work with UTF-8 encoding but this package is not tested against 3.6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for ansiblevarchecker-0.0.1.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0894f6296e47035a5bd6efabf07c60ce2d4b038c37aeda0e71af72695eb68943 |
|
MD5 | d658ec4d4fd4a0690e222d9f43bfd963 |
|
BLAKE2b-256 | 836e024dd7a15a649faf451f38b16a04140d82de632776956581d115c511369e |
Hashes for ansiblevarchecker-0.0.1.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96bc2d73e86807ad85b40a274a3e041e38a485522cf6f322bfdbdffb2ea5b41b |
|
MD5 | 7b63a39c5ad7798e810862a9cc8689a5 |
|
BLAKE2b-256 | 9095b5e28da1c7dce09fe0068788400d09d0add347ae4a5c74bb7e08b4bb370a |
Hashes for ansiblevarchecker-0.0.1.post1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 085a6a6d89d4ed46abaab6ccd835e030e1068a0ecf2f4e48bac64bf4ac56d179 |
|
MD5 | 1d6902a1554e0592a30346561254d40a |
|
BLAKE2b-256 | e36e7f818d60716b9b74c1735b474c71ab9f840bf6e6761885891469402aee6e |