diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..006d05d --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,7 @@ +enable_list: + - yaml + +skip_list: + - role-name + - risky-file-permissions + - literal-compare diff --git a/.github/actions/installation/install.sh b/.github/actions/installation/install.sh index 5f356bf..ddb0192 100755 --- a/.github/actions/installation/install.sh +++ b/.github/actions/installation/install.sh @@ -1,7 +1,7 @@ sudo pipx uninstall ansible-core sudo pip3 install 'rich>=10.0.0,<11.0.0' -sudo pip3 install ansible-lint[community]==5.3.2 -sudo pip3 install molecule[docker]==3.6.0 +sudo pip3 install ansible-lint[community]==6.13.1 +sudo pip3 install molecule[docker]==4.0.4 ansible --version diff --git a/.github/actions/linter/action.yml b/.github/actions/linter/action.yml index 211db62..29a9ac1 100644 --- a/.github/actions/linter/action.yml +++ b/.github/actions/linter/action.yml @@ -5,5 +5,5 @@ runs: steps: - name: Run linter id: linter - run: ansible-lint tasks/* -x role-name,risky-file-permissions,literal-compare -c .yamllint + run: ansible-lint tasks/* shell: bash diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b94bcb..f97ce0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,8 +14,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install requirements - uses: newrelic/infrastructure-agent-ansible/.github/actions/installation@master + uses: ./.github/actions/installation - name: Run linter - uses: newrelic/infrastructure-agent-ansible/.github/actions/linter@master + uses: ./.github/actions/linter - name: Run tests - uses: newrelic/infrastructure-agent-ansible/.github/actions/tests@master + uses: ./.github/actions/tests