sunrisemovement / devops

This repo is obsolete. A maintained version of this code lives at https://github.com/maximum-ethics/linode-caddy
GNU Affero General Public License v3.0
2 stars 1 forks source link

ensure handlers execute in correct order #7

Open skyfaller opened 4 years ago

skyfaller commented 4 years ago

As currently written, the last thing we do in linode_create.yml must be to force users to change their password, because once we do that, we can't do anything else! (Until we change our password, of course.)

Since handlers run in the order they are defined, not the order listed in the notify statement, our current implementation relies on our handlers being written down in the correct order, which seems fragile.

We should find some more reliable way to do this, perhaps calling the second handler from the first handler. We also should check whether this issue exists elsewhere in our repository, and fix any other occurrences in a similar fashion.