diff --git a/.gitea/workflows/runbook.yml b/.gitea/workflows/runbook.yml new file mode 100644 index 0000000..1885376 --- /dev/null +++ b/.gitea/workflows/runbook.yml @@ -0,0 +1,24 @@ +name: Run Ansible Playbook + +on: + push: + branches: + - main + +jobs: + run-ansible: + runs-on: self-hosted + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Decode SSH key + run: | + echo "${{ secrets.ANSIBLE_KEY_BASE64 }}" | base64 -d > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + + - name: echo SSH key + run: | + ls -la ~/.ssh + cat ~/.ssh/id_rsa \ No newline at end of file