From b7a579b41ea1ae34f59c14be3e9746f79ea15400 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 25 Mar 2020 14:36:31 +0200 Subject: [PATCH] Do not become `horizon` user for distro installs Compiling messages as horizon user during distro installs results in permissions error due to the fact that libraries are owned by root user and been already compiled by distro package hook (for some distros) Change-Id: If6e3b48b68e0018e0122d76bf49dfbe569ce96ce --- handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 7e4a2895..120b1026 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -15,7 +15,7 @@ - name: Compile messages command: "{{ horizon_manage }} compilemessages" - become: yes + become: "{{ (horizon_install_method == 'source') }}" become_user: "{{ horizon_system_user_name }}" args: chdir: "{{ horizon_lib_dir }}/"