Skip to content

Add ansible-lint CI #4039

Add ansible-lint CI

Add ansible-lint CI #4039

Triggered via pull request November 7, 2024 11:52
Status Success
Total duration 1m 29s
Artifacts

stackhpc-pull-request.yml

on: pull_request
Check changed files
4s
Check changed files
Matrix: lint
Matrix: tox
Fit to window
Zoom out
Zoom in

Annotations

22 warnings
Ansible 2.15 lint with Python 3.10
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_USERNAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_USERNAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/run-container-hotfix.yml#L23
Jinja2 spacing could be improved: {{ kolla_container_engine | default('docker') }} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command}} -> {{ kolla_container_engine | default('docker') }} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command }}
command-instead-of-module: etc/kayobe/ansible/rabbitmq-reset.yml#L33
systemctl used in place of systemd module
syntax-check[missing-file]: etc/kayobe/ansible/ubuntu-upgrade.yml#L1
Unable to retrieve file contents
fqcn[action-core]: etc/kayobe/ansible/vault-deploy-barbican.yml#L32
Use FQCN for builtin module actions (hashivault_auth_method).
Ansible 2.16 lint with Python 3.12
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_AUTH_URL*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PASSWORD*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PROJECT_DOMAIN_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_PROJECT_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_REGION_NAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/deploy-os-capacity-exporter.yml#L34
Jinja2 spacing could be improved: {{ credential.stdout_lines | select('match', '.*OS_USERNAME*.')| first | split('=') | last | replace("'", '') }} -> {{ credential.stdout_lines | select('match', '.*OS_USERNAME*.') | first | split('=') | last | replace("'", '') }}
jinja[spacing]: etc/kayobe/ansible/run-container-hotfix.yml#L23
Jinja2 spacing could be improved: {{ kolla_container_engine | default('docker') }} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command}} -> {{ kolla_container_engine | default('docker') }} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command }}
command-instead-of-module: etc/kayobe/ansible/rabbitmq-reset.yml#L33
systemctl used in place of systemd module
syntax-check[missing-file]: etc/kayobe/ansible/ubuntu-upgrade.yml#L1
Unable to retrieve file contents
fqcn[action-core]: etc/kayobe/ansible/vault-deploy-barbican.yml#L32
Use FQCN for builtin module actions (hashivault_auth_method).