Skip to content

Commit d8fdf6a

Browse files
Actually run the ansible script
1 parent 7ca7294 commit d8fdf6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/update.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
run: |
2424
sudo apt update
2525
sudo apt install ansible -y
26-
- name: Send Webhook to Discord (using Curl)
26+
- name: Send Webhook to Discord about updating Ruby
2727
run: |
28-
curl -X POST -H 'Content-type: application/json' --data '{"content":"Updating Server..."}' ${{ secrets.DISCORD_WEBHOOK }}
28+
curl -X POST -H 'Content-type: application/json' --data '{"content":"Updating Ruby..."}' ${{ secrets.DISCORD_WEBHOOK }}
29+
- name: Run Ansible Playbook
30+
run: |
31+
#we don't have ssh keys so we need to use the password
32+
ansible-playbook -i ./hosts ./playbooks/ruby.yml --extra-vars "ansible_ssh_pass=${{ secrets.ANSIBLE_PASSWORD }}"

0 commit comments

Comments
 (0)