I guess this is fairly simple question, but I’m stuck with it…
I have a playbook that checks whether services are up on hosts and starts them if they are not in started state, for example:
hosts: mailservers
tasks:
name: Check amavis service, and start if needed.
service: name=amavis state=started
What if i wanted to leave service in stopped state only on one of the hosts in “mailservers” group while performing this playbook? How can I achieve that?