Skip to content

updates

updates #92

name: Run Ansible Playbooks
on:
push:
branches:
- master
jobs:
run-playbooks:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ansible
steps:
- uses: actions/checkout@v2
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
# - name: Adding Known Hosts
# run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Run Ansible Playbook to deploy my blog
with:
workspace_path: ${{ github.workspace }}
run: ansible-playbook --verbose deploy.yaml

Check failure on line 27 in .github/workflows/run-ansible-playbook.yml

View workflow run for this annotation

GitHub Actions / Run Ansible Playbooks

Invalid workflow file

The workflow is not valid. .github/workflows/run-ansible-playbook.yml (Line: 27, Col: 7): Unexpected value 'run' .github/workflows/run-ansible-playbook.yml (Line: 24, Col: 7): Required property is missing: uses