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 22, 2022
1 parent ba24e65 commit 9a3fdb4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,20 @@ 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
cd $HOME/venv
python3 -m venv ansible-lint
. ansible-lint/bin/activate
pip3 install ansible-lint
cd -
```

Run of the lint:

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

0 comments on commit 9a3fdb4

Please sign in to comment.