Run task once for playbook, not per host

Hi,

I’m implementing client - server scenario deployment for some application and I have following question:

Is it possible to run tasks only once per playbook execution, not per host run.

Explanation:

I’m doing both client/server deployment with single playbook. It installs all required software on clients and server, and it generates all client and server templates. Also restart all clients but got issue with server restart.

Server software restart failed with too many restarts error when running playbook with large amount of hosts, but actually I need to restart server only once, not per client configuration.

In ideal case, even I want to restart server if one of server configuration files changed, not per playbook run.

Such a feature exists:

http://docs.ansible.com/ansible/playbooks_delegation.html#run-once

Thank you Brain :slight_smile: