From 76af56eaca9e3f54ad1e381de67930ef45a68c3f Mon Sep 17 00:00:00 2001 From: sebi Date: Wed, 18 Nov 2015 11:02:51 +0200 Subject: [PATCH] added unless stopped option --- lib/ansible/modules/cloud/docker/docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index effa79955b4..a8b8cd39b95 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -309,7 +309,7 @@ options: restart_policy: description: - Container restart policy. - choices: ["no", "on-failure", "always"] + choices: ["no", "on-failure", "always", "unless-stopped"] default: null version_added: "1.9" restart_policy_retry: @@ -1775,7 +1775,7 @@ def main(): detach = dict(default=True, type='bool'), state = dict(default='started', choices=['present', 'started', 'reloaded', 'restarted', 'stopped', 'killed', 'absent', 'running']), signal = dict(default=None), - restart_policy = dict(default=None, choices=['always', 'on-failure', 'no']), + restart_policy = dict(default=None, choices=['always', 'on-failure', 'no', 'unless-stopped']), restart_policy_retry = dict(default=0, type='int'), extra_hosts = dict(type='dict'), debug = dict(default=False, type='bool'),