diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..36ce858 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,11 @@ +name: Ansible lint +on: push +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Run linter + uses: ansible/ansible-lint@v6 diff --git a/.travis.yml b/.travis.yml index faa42cf..445126c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ install: - - pip install ansible ansible-lint + - pip install ansible # I had to temporary disable this cleanup in 'before_script' # as installation doesn't work as expected @@ -21,7 +21,6 @@ install: script: # Check syntax - ansible-playbook -i "localhost," test.yml --syntax-check - - ansible-lint . # First run - ansible-playbook -i "localhost," -c local test.yml --extra-vars "ansible_python_interpreter=auto nvm_install_path=~/.nvmbis"