geerlingguy/ansible-role-supervisor

Fix idempotence issue on Ubuntu 14.04

geerlingguy opened this issue · 1 comments

Something with the init script or something else seems to be causing the idempotence test to fail:

...
TASK [role_under_test : Copy Supervisor unit file into place (for systemd systems).] ***
skipping: [localhost]

TASK [role_under_test : Ensure Supervisor is started (if configured).] *********
changed: [localhost]

TASK [role_under_test : Ensure Supervisor is enabled at boot (if configured).] ***
ok: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=12   changed=1    unreachable=0    failed=0   

Idempotence test: fail

So, maybe it's the init script returning the wrong exit code or something. Regardless, for the time being, I'm disabling the idempotence test only for Ubuntu 14.04 until I can figure it out a little better.

Closing this out; I spent an hour on it tonight, and got nowhere fast. For some reason even manually diving into the container and running service apache2 stop as root didn't kill the foreground process. Not sure why supervisor was losing its brain on Apache (worked on other tests though).

Not worth the effort, since otherwise this role works fine on 14.04, and I don't want to add tests that are hard and/or annoying to maintain.