Skip to content

Commit

Permalink
Deploy only for self
Browse files Browse the repository at this point in the history
This script template is generated and saved on each server, with the name of itself.
If the playbook was being executed on multiple servers at once, it was saving the name of all servers here, which is not right! Now it will only save the name of the current server.

It now uses the domain name instead of group name (eg staging.openfoodnetwork.org.uk instead of uk_staging).
  • Loading branch information
dacook committed Nov 4, 2024
1 parent ad07f69 commit f19bd07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/remote_deployment/templates/deploy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ cd "/home/{{ deployment_user }}/ofn-install"
git pull

# Deploy
ansible-playbook playbooks/deploy.yml --limit {{ ansible_limit }} --connection local -e "git_repo=https://github.com/openfoodfoundation/openfoodnetwork.git git_version=$deploy"
ansible-playbook playbooks/deploy.yml --limit {{ inventory_hostname }} --connection local -e "git_repo=https://github.com/openfoodfoundation/openfoodnetwork.git git_version=$deploy"

0 comments on commit f19bd07

Please sign in to comment.