Merge pull request #2485 from sebi-hgdata/sebi/docker_unless_stopped

added unless stopped option to docker module
reviewable/pr18780/r1
Brian Coca 9 years ago
commit c1df014e3b

@ -305,7 +305,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:
@ -1769,7 +1769,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'),

Loading…
Cancel
Save