fixup! fixup! fixup! fixup! Implement ansible-lint workflow
Some checks reported warnings
Check / Run ansible-playbook --check (push) Has been cancelled
Check / Lint Ansible Files (push) Has been cancelled
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul Brinkmeier 2023-09-01 02:55:45 +02:00
parent f0284c3b44
commit 2326809010

View File

@ -20,3 +20,15 @@ jobs:
- run: python3 --version
- name: Check out repo
uses: actions/checkout@v3
- run: python3 -m venv venv
- run: venv/bin/pip install ansible==7.2.0 > /dev/null 2> /dev/null
- run: mkdir "$HOME/.ssh"
- run: echo "$SSH_KEY" > "$HOME/.ssh/id"
env:
SSH_KEY: ${{ secrets.sshKey }}
- run: chmod 0600 ~/.ssh/id
- run: ssh-keyscan -p 2309 vmd98928.contaboserver.net > "$HOME/.ssh/known_hosts"
- run: echo "$VAULT_PASSWORD" > "$HOME/vault_password"
env:
VAULT_PASSWORD: ${{ secrets.vaultPassword }}
- run: 'cd ansible && ansible-playbook --private-key "$HOME/.ssh/id" --vault-password-file "$HOME/vault_password" --check playbooks/misc-all.yaml'