File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Vim filetype=yaml
22---
3- # Skip ansible-galaxy collection install from requirements.yml. Recent ansible-core
4- # releases can hit Galaxy API KeyError: 'results' during install (CI and local uv).
5- # Install collections manually or use creator-ee when you need dependency-aware rules.
6- offline: true
3+ offline: false
74skip_list:
85 - name[template] # Allow Jinja templating inside task and play names
96 - template-instead-of-copy # Templated files should use template instead of copy
Original file line number Diff line number Diff line change 1414 with :
1515 persist-credentials : false
1616
17- - name : Lint Ansible Playbook
18- uses : ansible/ansible-lint@5fac056c45595896c973fbde871f01f6cb14d74c
17+ # The ansible-lint GitHub action installs via uv with a lock that tracks the newest
18+ # ansible-core; ansible-galaxy collection install then hits Galaxy KeyError: 'results'
19+ # on some 2.19+/2.20 clients. Pin ansible-core to the 2.18 series for a stable Galaxy client.
20+ - name : Set up Python
21+ uses : actions/setup-python@v5
1922 with :
20- setup_python : " true"
23+ python-version : " 3.12"
24+
25+ - name : Install ansible-lint and Galaxy-compatible ansible-core
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install ansible-lint "ansible-core>=2.18.0,<2.19.0"
29+
30+ - name : Install Ansible Galaxy collection dependencies
31+ run : ansible-galaxy collection install -r requirements.yml
32+
33+ - name : Run ansible-lint
34+ run : ansible-lint roles playbooks plugins
You can’t perform that action at this time.
0 commit comments