diff --git a/handlers/main.yml b/handlers/main.yml index eb735eb..ef01614 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -10,6 +10,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" ignore_errors: true notify: Adjust permissions for dumped environment file diff --git a/tasks/deployment.yml b/tasks/deployment.yml index 8428da6..2609350 100644 --- a/tasks/deployment.yml +++ b/tasks/deployment.yml @@ -5,6 +5,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" ignore_errors: true register: cache @@ -22,6 +23,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" when: - not ansible_check_mode @@ -63,6 +65,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" register: __userli_reserved_names changed_when: __userli_reserved_names.rc != 0 @@ -75,6 +78,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" register: __userli_reserved_names changed_when: __userli_reserved_names.rc != 0 diff --git a/tasks/primary.yml b/tasks/primary.yml index 1a57fe4..0daa6f9 100644 --- a/tasks/primary.yml +++ b/tasks/primary.yml @@ -32,6 +32,7 @@ chdir: "{{ userli_symfony_path }}" environment: APP_ENV: "prod" + become: true become_user: "{{ userli_user }}" when: database_creation.changed