From 3841738ed564ead22a629a3f5617b468c0b88a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Melein?= Date: Thu, 26 Dec 2024 19:06:30 +0100 Subject: [PATCH] Playbook updates --- .github/workflows/deploy.yml | 2 +- .playbook/playbook.yml | 6 +++++- .vscode/settings.json | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1949981..5154d49 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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" diff --git a/.playbook/playbook.yml b/.playbook/playbook.yml index 87a1a5a..0bcf1f3 100644 --- a/.playbook/playbook.yml +++ b/.playbook/playbook.yml @@ -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 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7d30d56 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "ansible.python.interpreterPath": "/opt/homebrew/bin/python3.12" +} \ No newline at end of file