diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5b9fd9c5..cd311858 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,6 +27,6 @@ jobs: ssh-private-key: ${{ secrets.DISCORD_BOT_DEPLOY_KEY }} - name: Deploy EuroPythonBot with ansible - run: ansible-playbook -i ansible/inventory.ini ansible/deploy-playbook.yml --private-key="/home/runner/.ssh/id_rsa" --user=root + run: ansible-playbook -i ${{ secrets.DISCORD_BOT_SERVER_HOST }}, ansible/deploy-playbook.yml --private-key="/home/runner/.ssh/id_rsa" --user=root env: ANSIBLE_HOST_KEY_CHECKING: "false" diff --git a/ansible/deploy-playbook.yml b/ansible/deploy-playbook.yml index 72b9ad6d..f7d49e29 100644 --- a/ansible/deploy-playbook.yml +++ b/ansible/deploy-playbook.yml @@ -1,6 +1,6 @@ --- - name: Deploy Discord Bot to the server - hosts: bot_server + hosts: all vars: repository_url: https://github.com/EuroPython/discord.git diff --git a/ansible/inventory.ini b/ansible/inventory.ini deleted file mode 100644 index 787b3b40..00000000 --- a/ansible/inventory.ini +++ /dev/null @@ -1,2 +0,0 @@ -[bot_server] -bot_server ansible_host=188.245.198.145