Code Monkey home page Code Monkey logo

Comments (5)

konstruktoid avatar konstruktoid commented on June 2, 2024 4

is community.general.terraform present in requirements.yml?

from ansible-lint-action.

konstruktoid avatar konstruktoid commented on June 2, 2024

Hi @bilalahmad99 can you include a link to the action run or any logs?

from ansible-lint-action.

bilalahmad99 avatar bilalahmad99 commented on June 2, 2024

error logs:

Run ansible/ansible-lint-action@main
/usr/bin/docker run --name a9[5](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:5)e1[6](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:6)040a113e1c46febf[7](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:7)5f1a7d5796a45_c[8](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:8)37a5 --label 2[9](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:9)a95e --workdir /github/workspace --rm -e INPUT_TARGETS -e INPUT_ARGS -e INPUT_OVERRIDE-DEPS -e TARGETS -e OVERRIDE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/infrastructure/infrastructure":"/github/workspace" 29a95e:16040a[11](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:11)3e1c46febf75f1a7d5796a45  "-x meta-no-info -x meta-no-tags"
+ args=("$@")
+ '[' /entrypoint.sh = /entrypoint.sh ']'
+ echo -E '\nRunning Ansible Lint...\n'
\nRunning Ansible Lint...\n
+ ansible::lint '-x meta-no-info -x meta-no-tags'
+ : './*.yml'
+ : /github/workspace
+ pushd /github/workspace
+ override_python_packages
+ [[ -n '' ]]
+ echo 'Completed installing override dependencies...'
Completed installing override dependencies...
+ local opts
++ parse_args -x meta-no-info -x meta-no-tags
++ local opts=
++ ((  4  ))
++ case "$1" in
++ opts=' -x meta-no-info'
++ shift 2
++ ((  2  ))
++ case "$1" in
++ opts=' -x meta-no-info -x meta-no-tags'
++ shift 2
++ ((  0  ))
++ eval set -- ' -x meta-no-info -x meta-no-tags'
+++ set -- -x meta-no-info -x meta-no-tags
++ echo '-x meta-no-info -x meta-no-tags'
++ return 0
+ opts='-x meta-no-info -x meta-no-tags'
/github/workspace /github/workspace
+ shopt -s globstar
+ ansible-lint -v --force-color -x meta-no-info -x meta-no-tags ./aws-provisioning.yml
WARNING: PATH altered to include /usr/bin
INFO     Set ANSIBLE_LIBRARY=/github/home/.cache/ansible-compat/[21](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:21)a3[23](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:23)/modules:/github/home/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
INFO     Set ANSIBLE_COLLECTIONS_PATH=/github/home/.cache/ansible-compat/21a[32](https://github.com/Azzurri-Tech/infrastructure/runs/5626144387?check_suite_focus=true#step:5:32)3/collections:/github/home/.ansible/collections:/usr/share/ansible/collections
INFO     Set ANSIBLE_ROLES_PATH=/github/home/.cache/ansible-compat/21a323/roles:roles:/github/home/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
WARNING  Overriding detected file kind 'yaml' with 'playbook' for given positional argument: ./aws-provisioning.yml
INFO     Executing syntax check on aws-provisioning.yml (0.70s)
WARNING  Listing 1 violation(s) that are fatal
syntax-check: couldn't resolve module/action 'community.general.terraform'. This often indicates a misspelling, missing collection, or incorrect module path.
Warning: s/aws_base_vpc/tasks/terraform.yml:2:3 [WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
ERROR! couldn't resolve module/action 'community.general.terraform'. This often indicates a misspelling, missing collection, or incorrect module path.

from ansible-lint-action.

bilalahmad99 avatar bilalahmad99 commented on June 2, 2024

yaml file

    - name: Lint Ansible Playbook
      uses: ansible/ansible-lint-action@main
      with:
        targets: "./*.yml"
        override-deps: |
          ansible-lint==5.3.2
        args: "-x meta-no-info -x meta-no-tags"

from ansible-lint-action.

ssbarnea avatar ssbarnea commented on June 2, 2024

I bet it is not, also since v6 was released we no longer support the old versions, so I will close this one.

from ansible-lint-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.