Skip to content

Commit

Permalink
Add "become" for each "become_user"
Browse files Browse the repository at this point in the history
  • Loading branch information
t2d committed Oct 10, 2023
1 parent 9492a15 commit e9b1ebe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tasks/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
chdir: "{{ userli_symfony_path }}"
environment:
APP_ENV: "prod"
become: true
become_user: "{{ userli_user }}"
ignore_errors: true
register: cache
Expand All @@ -22,6 +23,7 @@
chdir: "{{ userli_symfony_path }}"
environment:
APP_ENV: "prod"
become: true
become_user: "{{ userli_user }}"
when:
- not ansible_check_mode
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions tasks/primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
chdir: "{{ userli_symfony_path }}"
environment:
APP_ENV: "prod"
become: true
become_user: "{{ userli_user }}"
when: database_creation.changed

Expand Down

0 comments on commit e9b1ebe

Please sign in to comment.