From 4a7bc460db995905639adf0e2ebcbb213df8739e Mon Sep 17 00:00:00 2001 From: ozzy Date: Sat, 29 Jun 2024 10:37:14 +0000 Subject: [PATCH] Add .gitea/workflows/anisble-demo.yaml --- .gitea/workflows/anisble-demo.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/anisble-demo.yaml diff --git a/.gitea/workflows/anisble-demo.yaml b/.gitea/workflows/anisble-demo.yaml new file mode 100644 index 0000000..76bcd1b --- /dev/null +++ b/.gitea/workflows/anisble-demo.yaml @@ -0,0 +1,23 @@ +name: Ansible Demo + +# Controls when the workflow will run +on: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + run-playbooks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup SSH + shell: bash + run: | + eval `ssh-agent -s` + mkdir -p /home/runner/.ssh/ + touch /home/runner/.ssh/id_rsa + echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa + chmod 700 /home/runner/.ssh/id_rsa + ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts \ No newline at end of file