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