diff --git a/.gitea/workflows/yamllint.yml b/.gitea/workflows/yamllint.yml index 9ffa266..6e1dfa0 100644 --- a/.gitea/workflows/yamllint.yml +++ b/.gitea/workflows/yamllint.yml @@ -40,10 +40,13 @@ jobs: pip3 install ansible - name: Setup SSH + shell: bash env: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }} run: | + set -euo pipefail + mkdir -p ~/.ssh chmod 700 ~/.ssh @@ -57,6 +60,8 @@ jobs: ssh -o BatchMode=yes root@213.95.90.157 "echo SSH OK" + + - name: Run Ansible run: | ansible-playbook -i ansible/inventory.yaml site.yaml \ No newline at end of file