From 1ea86bc66a882c7a69f6e450052e999babd558bc Mon Sep 17 00:00:00 2001 From: Joseph Price Date: Tue, 3 Jan 2017 14:14:48 +0000 Subject: [PATCH] Clarify state=reloaded will start service --- lib/ansible/modules/system/service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index b1cb289b49f..6e8406e43f2 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -45,7 +45,9 @@ options: - C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload. B(At least one of state - and enabled are required.) + and enabled are required.) Note that reloaded will start the + service if it is not already started, even if your chosen init + system wouldn't normally. sleep: required: false version_added: "1.3"