Whereas it should be reporting ‘enabled: false’ - well, that’s what I’m looking for.
Is this something that can be achieved with the systemd module, or should I use the command module and manually run the command?
For some context: I am creating a ‘reboot check’ script, which will highlight show stoppers for a reboot, like if Nginx/http will start on boot etc for then admins to fix (only if necessary - some services are not supposed to start on boot (like Oracle) on this occasion.
Any advice would be great as I’ve not found anything in the docs.
Well, your task forces it to be enabled, which the module then tells
systemd to do, weirdly it seems to 'succeed' but then still be
disabled? That seems like a bug or something else is going on.
If you just want to query 'system state' use service_facts module