summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/stop_start_openbook.yaml
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-11-28 14:17:35 -0700
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-11-28 14:17:35 -0700
commitee05c6885f8688c101a186690f716250d7aca657 (patch)
treecf29d6237ff6455471c1804ed14d45fadf2f7cf0 /salt/openbook/ansible/files/stop_start_openbook.yaml
parent184f021a36226f3b0c8dc7f85e440692808f02f8 (diff)
syncing up with vzw
Diffstat (limited to 'salt/openbook/ansible/files/stop_start_openbook.yaml')
-rw-r--r--salt/openbook/ansible/files/stop_start_openbook.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/salt/openbook/ansible/files/stop_start_openbook.yaml b/salt/openbook/ansible/files/stop_start_openbook.yaml
index 83c1d57..376d1f5 100644
--- a/salt/openbook/ansible/files/stop_start_openbook.yaml
+++ b/salt/openbook/ansible/files/stop_start_openbook.yaml
@@ -2,9 +2,9 @@
- name: "Verify action to take"
hosts: localhost
tasks:
- - name: "Check that -e 'action=[stop|start]' was passed in"
- fail: msg="The variable 'action' was not passed in with a value of 'stop' or 'start' on the command line."
- when: action not in ["stop", "start"]
+ - name: "Check that -e 'action=[stop|start|restart]' was passed in"
+ fail: msg="The variable 'action' was not passed in with a value of 'stop', 'start' or 'restart' on the command line."
+ when: action not in ["stop", "start", "restart"]
- name: "Stop Openbook"
hosts: "{{ groups['target']|sort(reverse=True) }}"
@@ -17,7 +17,7 @@
docker stop ${cont}
done
docker container prune -f
- when: action == "stop"
+ when: action in ["stop", "restart"]
- name: "Start Openbook"
hosts: "{{ groups['target']|sort }}"
@@ -25,4 +25,4 @@
tasks:
- name: "Start Openbook"
shell: /etc/init.d/openbook start
- when: action == "start"
+ when: action in ["start", "restart"]