You can write a plan which will either use run_tas...
# bolt
y
You can write a plan which will either use run_task() twice to start and check or apply() with the usual puppet service resource