Skip to content

Commit

Permalink
README: Add ansible-lint setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas committed Jun 23, 2022
1 parent ba24e65 commit 1e370ab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,18 @@ Build minimal rpm package for Firefox::
Build minimal rpm package for Chrome or Safari::

$ rpmbuild -D"ovirt_build_minimal 1" -D"ovirt_build_user_agent safari" -tb @tarball@

=== Ansible Lint

To use ansible-lint locally you need to install it from PyPI in a python virtualenv/venv, e.g.:
```
sudo dnf install python3-virtualenv
mkdir -p $HOME/venv
python3 -m venv $HOME/venv/ansible-lint
. $HOME/venv/ansible-lint/bin/activate
pip3 install "ansible-lint>=6.0.0,<7.0.0"
```

Run of the lint:

$ ansible-lint -c build/ansible-lint.conf packaging/ansible-runner-service-project/project/roles/*

0 comments on commit 1e370ab

Please sign in to comment.