From 4a12ac423399b91d272f2c97ab65bbcff1581758 Mon Sep 17 00:00:00 2001 From: Stepan Andrushko Date: Wed, 22 Aug 2018 19:01:28 +0300 Subject: Update configure_uwsgi run in baremetal/container Now "daemonize" prevents from installing Yardstick on baremetal. Configuring: "daemonize" in case "container" installation mode; "logto" in case "baremetal" installation mode; JIRA: YARDSTICK-1395 Change-Id: Ie390464db9c0816583edc711ed6526629d091bd3 Signed-off-by: Stepan Andrushko --- ansible/roles/configure_uwsgi/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ansible/roles/configure_uwsgi/tasks/main.yml') diff --git a/ansible/roles/configure_uwsgi/tasks/main.yml b/ansible/roles/configure_uwsgi/tasks/main.yml index 6a2244657..8822bda53 100644 --- a/ansible/roles/configure_uwsgi/tasks/main.yml +++ b/ansible/roles/configure_uwsgi/tasks/main.yml @@ -39,6 +39,14 @@ owner: root mode: 0644 +- set_fact: + uwsgi_log: "logto" + when: installation_mode == inst_mode_container + +- set_fact: + uwsgi_log: "daemonize" + when: installation_mode != inst_mode_container + - name: Create the UWSGI config file template: src: yardstick.ini.j2 -- cgit 1.2.3-korg