inventory: add Service Account authentication method #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: ansible-lint | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
jobs: | |
ansibe-lint: | |
name: Ansible Lint | |
runs-on: ubuntu-latest | |
steps: | |
# ansible-lint requires the collection to be in a directory in the form | |
# .../ansible_collections/NAMESPACE/COLLECTION_NAME/ | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
path: ansible_collections/redhat/insights | |
- name: Set Ansible environment variables (#1) | |
run: | | |
echo "ANSIBLE_COLLECTIONS_PATH=$PWD" >> "$GITHUB_ENV" | |
- name: Set Ansible environment variables (#2) | |
# yamllint disable rule:line-length | |
run: | | |
echo "ANSIBLE_ACTION_PLUGINS=$PWD/plugins/action" >> "$GITHUB_ENV" | |
echo "ANSIBLE_INVENTORY_PLUGINS=$PWD/plugins/inventory" >> "$GITHUB_ENV" | |
echo "ANSIBLE_LIBRARY=$PWD/plugins/modules" >> "$GITHUB_ENV" | |
# yamllint enable rule:line-length | |
working-directory: ansible_collections/redhat/insights | |
- name: Run ansible-lint | |
uses: ansible/ansible-lint@v24 | |
with: | |
working_directory: ansible_collections/redhat/insights |