Skip to content

Commit

Permalink
[ci] Install python3-netaddr on the controller
Browse files Browse the repository at this point in the history
ansible-lint seems to have gained the ability to analyse jinja2 templates.

This patch fixes errors like:
Error: An unhandled exception occurred while running the lookup plugin 'template'.
Error was a <class 'ansible.errors.AnsibleFilterError'>, original message:
The ipaddr filter requires python's netaddr be installed on the ansible controller.

(cherry picked from commit d54b350)
  • Loading branch information
Alphix authored and drybjed committed Nov 8, 2022
1 parent e72f6a6 commit 0df86dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Prepare test environment
run: |
sudo apt-get remove --purge -yq ansible
sudo apt-get install python3-netaddr
pip3 install --upgrade pip wheel setuptools
pip3 install --user --upgrade Jinja2 ansible ansible-lint
Expand Down

0 comments on commit 0df86dd

Please sign in to comment.