Skip to content

Commit

Permalink
Add destroy playbooks back to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBrandes committed Jan 31, 2025
1 parent c1b6aa8 commit ad7dbe9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/hydra-operations/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function check_if_should_update() {
echo "Directory - scripts"
echo "Directory - infra/ansible/local/playbooks/start"
echo "Directory - infra/ansible/local/playbooks/stop"
echo "Directory - infra/ansible/local/playbooks/destroy"
echo "File - infra/ansible/local/playbooks/vars.ansible.yml"
echo "Directory - infra/ansible/remote/nodes/playbooks/deploy"
echo "Directory - infra/ansible/remote/nodes/playbooks/start"
Expand Down Expand Up @@ -136,6 +137,9 @@ function update_local_ansible_files() {
rm -r $ANSIBLE_DIRECTORY/playbooks/stop
cp -r $INFRA_PATH/euclid-development-environment/infra/ansible/local/playbooks/stop $ANSIBLE_DIRECTORY/playbooks

rm -r $ANSIBLE_DIRECTORY/playbooks/destroy
cp -r $INFRA_PATH/euclid-development-environment/infra/ansible/local/playbooks/destroy $ANSIBLE_DIRECTORY/playbooks

else
mkdir -p "$INFRA_PATH/ansible"
cp -r $INFRA_PATH/euclid-development-environment/infra/ansible/local "$INFRA_PATH/ansible"
Expand Down

0 comments on commit ad7dbe9

Please sign in to comment.