From 42b94f7554842dd28c45b3427b5a3c3a040cab58 Mon Sep 17 00:00:00 2001 From: Nils Quirmbach Date: Thu, 3 Oct 2024 16:32:54 +0200 Subject: [PATCH] Fix ansible workflow --- .github/workflows/ansible-playbook.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansible-playbook.yml b/.github/workflows/ansible-playbook.yml index 3245c79..2df65e6 100644 --- a/.github/workflows/ansible-playbook.yml +++ b/.github/workflows/ansible-playbook.yml @@ -35,9 +35,11 @@ jobs: # Schritt 4: Füge die Master-Node zur known_hosts-Datei hinzu - name: Add server to known hosts - run: ssh-keyscan -H ${{ env.MASTER_NODE_IP }} >> ~/.ssh/known_hosts + run: | + ech "Adding server ${{ vars.MASTER_NODE_IP }} to the known hosts" + ssh-keyscan -H ${{ vars.MASTER_NODE_IP }} >> ~/.ssh/known_hosts # Schritt 5: Führe das Ansible-Playbook aus - name: Run Ansible Playbook run: | - ansible-playbook -i ${{ env.MASTER_NODE_IP }}, -u ${{ env.MASTER_NODE_USER }} ops/ansible/playbooks/master-setup.yml + ansible-playbook -i ${{ vars.MASTER_NODE_IP }}, -u ${{ vars.MASTER_NODE_USER }} ops/ansible/playbooks/master-setup.yml