Start nginx and uwsgi servicies only in not container mode 19/58919/3
authorStepan Andrushko <stepanx.andrushko@intel.com>
Tue, 15 May 2018 15:42:55 +0000 (18:42 +0300)
committerEmma Foley <emma.l.foley@intel.com>
Tue, 26 Jun 2018 14:40:21 +0000 (14:40 +0000)
No need to execute nginx and uwsgi when running in container mode.

JIRA: YARDSTICK-1179

Change-Id: I253f3adab388a14886b70e6589936f6eb27ac4c0
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
(cherry picked from commit 3decdca3d0732a1df845650562e7bcb8fbfd87a7)

ansible/install.yaml

index afffbed..c446b91 100644 (file)
@@ -38,5 +38,7 @@
     - service:
         name: nginx
         state: restarted
+      when: installation_mode != inst_mode_container
 
     - shell: uwsgi -i /etc/yardstick/yardstick.ini
+      when: installation_mode != inst_mode_container