ansible/ansible-modules-core — pull request #199 by gottwald (2014-10-19 20:25:47+00:00)
Title: Add support for new docker restart policies

Docker deprecated the "-r" switch for the docker daemon.
Since docker 1.2 every container can now have it's own restart policy.

Module restart_policy option defaults are the same as the docker command defaults.
Needs docker-py >= 0.5.0.
Settings get ignored when used with a lower docker-py version. Tested it with docker-py 0.3.2.