Skip to content

inventory: add Service Account authentication method #57

inventory: add Service Account authentication method

inventory: add Service Account authentication method #57

Workflow file for this run

---
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