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

This commit is contained in:
Paul Brinkmeier 2023-09-01 03:35:12 +02:00
parent 713eeaae0a
commit 49ed971d42

View File

@ -21,7 +21,7 @@ jobs:
- name: Check out repo - name: Check out repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: python3 -m venv venv - run: python3 -m venv venv
# - run: venv/bin/pip install ansible==7.2.0 > /dev/null 2> /dev/null - run: venv/bin/pip install ansible==7.2.0 > /dev/null 2> /dev/null
- run: mkdir -p "$HOME/.ssh" - run: mkdir -p "$HOME/.ssh"
- run: echo "$SSH_KEY" > "$HOME/.ssh/id" - run: echo "$SSH_KEY" > "$HOME/.ssh/id"
env: env:
@ -31,4 +31,7 @@ jobs:
- run: echo "$VAULT_PASSWORD" > "$HOME/vault_password" - run: echo "$VAULT_PASSWORD" > "$HOME/vault_password"
env: env:
VAULT_PASSWORD: ${{ secrets.vault_password }} VAULT_PASSWORD: ${{ secrets.vault_password }}
# I've been having problems with ssh-keyscan -p 2309 vmd98928.contaboserver.net, which
# is the current inventory entry for misc. It's probably not a bad idea to remap that anyways.
- run: echo "[misc]\npbrinkmeier.de ansible_port=2309" > ansible/inventory
- run: 'cd ansible && ansible-playbook --private-key "$HOME/.ssh/id" --vault-password-file "$HOME/vault_password" --check playbooks/misc-all.yaml' - run: 'cd ansible && ansible-playbook --private-key "$HOME/.ssh/id" --vault-password-file "$HOME/vault_password" --check playbooks/misc-all.yaml'