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