diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/ansible-runner.yaml similarity index 85% rename from .gitea/workflows/demo.yaml rename to .gitea/workflows/ansible-runner.yaml index 38b77f8..3f0b849 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/ansible-runner.yaml @@ -1,4 +1,4 @@ -name: Install Ansible +name: Run Ansible on: push: @@ -43,6 +43,10 @@ jobs: echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config env: SSH_PRIVATE_KEY: ${{ secrets.SSHKEY_B64 }} + - name: Checkout Repository + uses: actions/checkout@v4 + submodules: recursive + fetch-depth: 0 # Python 3 installieren, was für pip und Ansible notwendig ist - name: Set up Python uses: actions/setup-python@v5 @@ -58,12 +62,12 @@ jobs: # vault file anlegen - name: create vault file run: echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .vault_pass.txt - - name: Manuelles Submodule Update - run: | - git submodule init - # Hier wird der SSH-Fehler wahrscheinlich auftreten - git submodule update --recursive --init --force - # Optional: Version prüfen, um die erfolgreiche Installation zu bestätigen +# - name: Manuelles Submodule Update +# run: | +# git submodule init +# # Hier wird der SSH-Fehler wahrscheinlich auftreten +# git submodule update --recursive --init --force +# # Optional: Version prüfen, um die erfolgreiche Installation zu bestätigen - name: Verify Ansible Installation run: ansible --version - name: Validate Ansible inventory