Synchronization with Ansible-lint (Ansible)

Ansible-lint is a lint for Ansible configuration files. Ansible-lint is available in embedded mode in Themis.

Embedded analysis in Themis

 

To delegate to Themis the analysis of your Ansible configuration files, you must first configure the embedded linters mode for your source. You must then add a sub-plugin for Ansible-lint.

Themis uses the default configuration of Ansible-lint in a file in YAML format. You can edit the contents of this file at any time. Here is the content of the default configuration file:

 

 

exclude_paths:
  - /my/path/to/exclude
parseable: true
quiet: true
skip_list:
  - skip_this_tag
verbosity: 0
use_default_rules: true

In case you already have a configuration file on your source code repository, you can configure Themis to use this configuration file. To do this, you must specify the combination of the following 2 parameters :

  • Use a configuration file on your repository (true / false) : Specify true to use your configuration file.
  • Relative path of the configuration file on your depot : Enter here the relative path on your source code repository of the configuration file. Example: src/ansible.yml.

If you enable the use of your own configuration file, the parameter "Configuration file" is not taken into account in the analysis. It also does not reflect the contents of the configuration file on your source code repository.

 

Information and installed versions

Website : https://github.com/ansible/ansible-lint

Extensions of analyzed files : .yml, .yaml

Version of Themis Version of Ansible-lint
2.6.0 3.5.1

 

Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.