“Service” documentation indicates “restarted” is not idempotent:
‘started’, ‘stopped’, ‘reloaded’, or ‘restarted’. Started/stopped are idempotent actions that will not run commands unless neccessary. ‘restarted’ will always bounce the service, ‘reloaded’ will always reload.
Playbook:
action: service name=hadoop-hdfs-namenode state=restarted
Actual behaviour:
failed: [10.20.30.40] => {“changed”: false, “failed”: true, “msg”: “failed determining the current service state => state stays unchanged”}
Aside: this is during installation/configuration of HBase, which seems to have broken “service” scripts and will possibly never return proper state. Would like to be able to install HBase anyway.