Skip to content

Commit

Permalink
revert back and delete ansible.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtktl committed Dec 13, 2024
1 parent 7987eda commit 3732a68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ exclude_paths:
warn_list:
- name[template]
- run-once[play]

verbosity: 3
21 changes: 8 additions & 13 deletions .github/workflows/ansible-lint-github-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <<EOF > ansible.cfg
[defaults]
Expand All @@ -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
3 changes: 0 additions & 3 deletions ansible.cfg

This file was deleted.

0 comments on commit 3732a68

Please sign in to comment.