Skip to content

Commit

Permalink
Playbook updates
Browse files Browse the repository at this point in the history
  • Loading branch information
leonmelein committed Dec 26, 2024
1 parent 6a73c1b commit 3841738
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Run playbook
run: ansible-playbook -i staging, .playbook/playbook.yml -u github-actions --inventory .playbook/inventory --extra-vars repositoryPath=$GITHUB_WORKSPACE
run: ansible-playbook -i staging, .playbook/playbook.yml -u github-actions --inventory .playbook/inventory --extra-vars "repositoryPath=$GITHUB_WORKSPACE/dist"
6 changes: 5 additions & 1 deletion .playbook/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
dest: /www/swim
mode: '0644'

- name: Restart nginx
- name: Restart nginx
hosts: beta
become: true
tasks:
- name: Restart nginx service
ansible.builtin.service:
name: nginx
state: restarted
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/opt/homebrew/bin/python3.12"
}

0 comments on commit 3841738

Please sign in to comment.