Skip to content

Commit

Permalink
Run ansible-lint in CI and fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mueller-ma committed May 27, 2024
1 parent 56be8d5 commit 10f8e65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ jobs:
uses: MonolithProjects/[email protected]
with:
molecule_command: lint

- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install ansible-lint
run: pip3 install ansible-lint

- name: Run ansible-lint
run: ansible-lint --profile production .
working-directory: ./lablabs.rke2
1 change: 1 addition & 0 deletions tasks/first_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@

- name: Get all nodes
ansible.builtin.shell: |
set -o pipefail
{{ rke2_data_path }}/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml \
get nodes --no-headers | awk '{print $1}'
args:
Expand Down

0 comments on commit 10f8e65

Please sign in to comment.