From 983e2e52534aa4df03e583d41e6ee90a45668825 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 22 Oct 2024 11:20:06 +1100 Subject: [PATCH] Disable ansible-lint on CI --- .github/workflows/build.yml | 26 +++++++++++++------------- README.md | 2 +- requirements.txt | 5 ++++- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24aff8316..61a6a9143 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,23 +6,23 @@ on: pull_request: jobs: - ansible-lint: - runs-on: ubuntu-20.04 + #ansible-lint: + # runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 + # steps: + # - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.10.15' + # - uses: actions/setup-python@v4 + # with: + # python-version: '3.10.15' - - name: Set up Ansible - run: | - pip install -r requirements.txt - bin/setup + # - name: Set up Ansible + # run: | + # pip install -r requirements.txt + # bin/setup - - name: Ansible Lint - run: ansible-lint playbooks/*.yml --exclude community + # - name: Ansible Lint + # run: ansible-lint playbooks/*.yml --exclude community playbook-tests: runs-on: ubuntu-20.04 diff --git a/README.md b/README.md index 7de1b5494..2a9f4e717 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Run the [ansible-lint](https://github.com/willthames/ansible-lint) checks using: ansible-lint site.yml --exclude=community ``` -This is also run in CI. +~~~This is also run in CI.~~~ ## Security diff --git a/requirements.txt b/requirements.txt index 8a53d6c0c..2ed4f552f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ ansible==2.10.7 -ansible-lint==4.2.0 +# This version doesn't work with the current Ansible version. +# But upgrading seems to break the build. +# TODO: upgrade ans fix ansible-lint +#ansible-lint==4.2.0 yamllint==1.21.0 jinja2<3.1