Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ skip_list:
- no-handler
# Disable jinja formatting check
- jinja[spacing]

# Disabled skips, because they are not not required now.
# - yaml[comments]
# - yaml[line-length]
# - no-tabs
# Removing these skips would require refactoring of most roles
- yaml[comments]
- yaml[line-length]
- no-tabs
# - var-naming[no-jinja]
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ on:
paths:
- 'roles/sap_hypervisor_node_preconfigure/**'

workflow_dispatch:

jobs:
ansible-lint:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python 3
uses: actions/setup-python@main
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.13'

- name: Install test dependencies
run: |
pip3 install ansible==7.5.0
pip3 install ansible-compat==3.0.2
pip3 install ansible-core==2.14.5
pip3 install ansible-lint==6.8.6
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0

- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_hypervisor_node_preconfigure
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/ansible-lint-sap_vm_preconfigure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ on:
paths:
- 'roles/sap_vm_preconfigure/**'

workflow_dispatch:

jobs:
ansible-lint:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Python 3
uses: actions/setup-python@main
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0

- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_preconfigure
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/ansible-lint-sap_vm_provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install jmespath==1.0.1
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0 \
jmespath~=1.0.0

- name: Install dependencies for Ansible
run: ansible-galaxy collection install -r /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/requirements.yml
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ansible-lint-sap_vm_temp_vip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0

- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_temp_vip
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ansible-lint-sap_vm_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install jmespath==1.0.1
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0

- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_verify
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install dependencies for Python
- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install jmespath==1.0.1
pip3 install \
ansible-core~=2.18.0 \
ansible~=11.0.0 \
ansible-lint~=25.1.0 \
ansible-compat~=25.1.0 \
jmespath~=1.0.0

- name: Install dependencies for Ansible
run: ansible-galaxy collection install -r /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/requirements.yml
Expand Down