Skip to content

updates

updates #97

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
env:
WORKSPACE_DIR: "/home/deployer/my-blog"
run: ansible-playbook --verbose deploy.yaml