diff --git a/tasks/horizon_db_setup.yml b/tasks/horizon_db_setup.yml index 74562d1d..b647cd70 100644 --- a/tasks/horizon_db_setup.yml +++ b/tasks/horizon_db_setup.yml @@ -41,8 +41,8 @@ - name: Perform a horizon DB sync command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput" - sudo: yes - sudo_user: "{{ horizon_system_user_name }}" + become: yes + become_user: "{{ horizon_system_user_name }}" tags: - horizon-db-setup - horizon-db-sync diff --git a/tasks/horizon_post_install.yml b/tasks/horizon_post_install.yml index 4411d13a..08822a97 100644 --- a/tasks/horizon_post_install.yml +++ b/tasks/horizon_post_install.yml @@ -70,8 +70,8 @@ - name: Collect and compress static files command: "{{ item }}" - sudo: yes - sudo_user: "{{ horizon_system_user_name }}" + become: yes + become_user: "{{ horizon_system_user_name }}" with_items: - "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput" - "{{ horizon_bin }}/horizon-manage.py compress --force"