diff --git a/.ansible-lint b/.ansible-lint index 4a2391f..24ee7ff 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -9,5 +9,3 @@ exclude_paths: warn_list: - name[template] - run-once[play] - -verbosity: 3 diff --git a/.github/workflows/ansible-lint-github-hosted.yml b/.github/workflows/ansible-lint-github-hosted.yml index fdd0150..b736e71 100644 --- a/.github/workflows/ansible-lint-github-hosted.yml +++ b/.github/workflows/ansible-lint-github-hosted.yml @@ -3,7 +3,7 @@ name: Ansible Lint on GitHub-Hosted Runner run-name: ansible-lint validation on PR-${{ github.event.pull_request.number }} on: pull_request: - branches: ["main", "devel"] + branches: ["main"] jobs: ansible-lint: name: Ansible Lint @@ -13,8 +13,6 @@ jobs: uses: actions/checkout@v4 - name: Populate ansible config - env: - RH_AUTOMATION_HUB_TOKEN: ${{ secrets.RH_AUTOMATION_HUB_TOKEN }} run: | cat < ansible.cfg [defaults] @@ -25,21 +23,18 @@ jobs: server_list = automation_hub_published, automation_hub_validated, galaxy [galaxy_server.automation_hub_published] - url='https://console.redhat.com/api/automation-hub/content/published/' - auth_url='https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token' - token=$RH_AUTOMATION_HUB_TOKEN + url=https://console.redhat.com/api/automation-hub/content/published/ + auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token + token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }} [galaxy_server.automation_hub_validated] - url='https://console.redhat.com/api/automation-hub/content/validated/' - auth_url='https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token' - token=$RH_AUTOMATION_HUB_TOKEN + url=https://console.redhat.com/api/automation-hub/content/validated/ + auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token + token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }} [galaxy_server.galaxy] url=https://galaxy.ansible.com/ EOF - - name: Show ansible config - run: cat ansible.cfg - - name: Run ansible-lint - uses: ansible/ansible-lint@main + uses: ansible/ansible-lint@main \ No newline at end of file diff --git a/ansible.cfg b/ansible.cfg deleted file mode 100644 index 0ecd778..0000000 --- a/ansible.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[defaults] -collections_path = ./collections:./imported/collections -roles_path = ./roles:./imported/roles