Commit b9908b78 authored by Torsten Nielsen's avatar Torsten Nielsen
Browse files

Add info about Ansible Lint and VS Code plugin

parent 266ca24c
......@@ -176,6 +176,15 @@ You can also install Ansible roles and collections into a specific local path us
Collections and Roles can be used across different versions of Ansible, but if you need special versions or want to isolate some, that don't work with certain versions of Ansible, then it would make sence to isolate them in their own folders.
Install Ansible Lint
--------------------
[Ansible Lint](https://ansible-lint.readthedocs.io/en/latest/) helps "linting" the yaml files as well as jinja2 templates.
(ansible2.9.6)$ python3 -m pip install "ansible-lint[community,yamllint]"
Deactivate a Python virtual environment
---------------------------------------
......@@ -200,5 +209,9 @@ Wrap up
Python virtual environments give you the freedom to test whatever version of modules, plugins, and Python packages you need. That includes vital sysadmin software like Ansible, so you can test new Ansible features without disturbing your system install.
Note for users of the VS Code editor
------------------------------------
There is a [VS Code plugin for Ansible](https://marketplace.visualstudio.com/items?itemName=redhat.ansible).
Modified from: [Source](https://www.redhat.com/sysadmin/python-venv-ansible?sc_cid=7013a000002pezWAAQ)
\ No newline at end of file
Modified from: [Source](https://www.redhat.com/sysadmin/python-venv-ansible?sc_cid=7013a000002pezWAAQ)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment