srobo / ansible

Ansible configuration for Student Robotics' pet machines
MIT License
0 stars 4 forks source link

Ensure the code-submitter database is re-created if missing #58

Open PeterJCLaw opened 8 months ago

PeterJCLaw commented 8 months ago

Currently the database is created only when the code change. This works for initial deploys and handles the case of updates too. However if we remove the database (e.g: between SR years) then it doesn't work so well.

PeterJCLaw commented 4 months ago

Had a quick look at this. Using creates doesn't work like we'd want as that then prevents the command from running when the code changes if the database file is already present.