band-on-iac/.gitea/workflows/dry-run.yml
rulrich ec3ed9c862
Some checks failed
Ansible Dry Run / Explore-Gitea-Actions (push) Failing after 13s
.gitea/workflows/dry-run.yml aktualisiert
2024-03-10 17:37:08 +01:00

34 lines
No EOL
1.6 KiB
YAML

name: Ansible Dry Run
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Dry Run
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yml
- run: echo "🍏 This job's status is ${{ job.status }}."
#apt update && apt install -y ansible-playbook
#echo "${{ secrets.ANSIBLE_CI_USER }}" > /tmp/.pw
#chmod 600 /tmp/.pw
#cd ${{ gitea.workspace }}
#echo ansible-playbook -i hosts -l testing playbook.yml -u ${{ settings.ANSIBLE_RUN_AS }} ---become-password-file /tmp/.pw --check
#ansible-playbook -i hosts -l testing playbook.yml -u administrator ---become-password-file /tmp/.pw --check
#
# run: |
#echo "${{ secrets.ANSIBLE_CI_USER }}" > /tmp/.pw
#ls ${{ gitea.workspace }}
#ansible-playbook -i hosts -l testing playbook.yml -u administrator ---become-password-file /tmp/.pw --check