You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current github action (6.22.1) behaves as if it is always in "offline" mode (although according to logs it is not) and does not install requirements neigher from requirements.yml nor from galaxy.yml. This severely limites its usablilty, restricting it to mostly a YAML syntax check.
playbook: simple aws s3 upload with the deliberate error in params, like
#...tasks:
- name: Upload data to S3community.aws.s3_sync:
region: "{{ region }}"bucket: "{{ bucket_name }}"file_root: "{{ data_path }}"delete: true# will not be detecteddeliberately_broken: trueregister: upload_result
Local ansible-lint is also reporting that it will not install requirements
WARNING Skipped installing collection dependencies due to running in offline mode.
but its ok because they are already installed
Actual Behavior
No errors, 3 warnings in logs (first is identical to a normal run of local ansible-lint)
WARNING Skipped installing collection dependencies due to running in offline mode.
INFO Executing syntax check on playbook upload.yaml (0.42s)
WARNING Unable to load module community.aws.s3_sync at upload.yaml:13 for options validation
WARNING Unable to resolve FQCN for module community.aws.s3_sync
The text was updated successfully, but these errors were encountered:
Same result, same time, any version could be used (attemt to use ansible/ansible-lint@v6.11.0 as an action fails), same way to configure lint (with config file). If action worked, I'd use it, but that's fine too
Summary
Current github action (6.22.1) behaves as if it is always in "offline" mode (although according to logs it is not) and does not install requirements neigher from
requirements.yml
nor fromgalaxy.yml
. This severely limites its usablilty, restricting it to mostly a YAML syntax check.Issue Type
OS / ENVIRONMENT
github workflow
STEPS TO REPRODUCE
Test case is at https://github.com/veksh/ans-lint-test, it is like
.github/workflows
.ansible-lint
config with explicitoffline: false
Desired Behavior
Flagged error in parameter
Local ansible-lint is also reporting that it will not install requirements
but its ok because they are already installed
Actual Behavior
No errors, 3 warnings in logs (first is identical to a normal run of local ansible-lint)
The text was updated successfully, but these errors were encountered: