Skip to content

Commit

Permalink
Fix ansible workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Quirmbach committed Oct 3, 2024
1 parent 7e09759 commit 42b94f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ansible-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42b94f7

Please sign in to comment.