22 lines
418 B
YAML
22 lines
418 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
|
|
run: |
|
|
echo "${{ secrets.ANSIBLE_SSH_KEY }}" | /tmp/id_rsa.b64
|
|
|
|
- name: cat the SSH key
|
|
run: |
|
|
cat /tmp/id_rsa.b64 |