This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Install Ansible
|
name: Run Ansible
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -43,6 +43,10 @@ jobs:
|
|||||||
echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config
|
echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSHKEY_B64 }}
|
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
|
# Python 3 installieren, was für pip und Ansible notwendig ist
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -58,12 +62,12 @@ jobs:
|
|||||||
# vault file anlegen
|
# vault file anlegen
|
||||||
- name: create vault file
|
- name: create vault file
|
||||||
run: echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .vault_pass.txt
|
run: echo "${{ secrets.ANSIBLE_VAULT_KEY }}" > .vault_pass.txt
|
||||||
- name: Manuelles Submodule Update
|
# - name: Manuelles Submodule Update
|
||||||
run: |
|
# run: |
|
||||||
git submodule init
|
# git submodule init
|
||||||
# Hier wird der SSH-Fehler wahrscheinlich auftreten
|
# # Hier wird der SSH-Fehler wahrscheinlich auftreten
|
||||||
git submodule update --recursive --init --force
|
# git submodule update --recursive --init --force
|
||||||
# Optional: Version prüfen, um die erfolgreiche Installation zu bestätigen
|
# # Optional: Version prüfen, um die erfolgreiche Installation zu bestätigen
|
||||||
- name: Verify Ansible Installation
|
- name: Verify Ansible Installation
|
||||||
run: ansible --version
|
run: ansible --version
|
||||||
- name: Validate Ansible inventory
|
- name: Validate Ansible inventory
|
||||||
Reference in New Issue
Block a user