22 lines
444 B
YAML
22 lines
444 B
YAML
name: Run Ansible Playbook
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
run-ansible:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Copy base64 encoded SSH key to file to a temp file and dont decode it
|
|
run: |
|
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/id_rsa.b64
|
|
|
|
- name: cat the base64 SSH key
|
|
run: |
|
|
cat /tmp/id_rsa.b64 |