Skip to content

Commit

Permalink
Don't use sudo for composer authentications (#1427)
Browse files Browse the repository at this point in the history
Sets `become: no` to avoid sudo usage which will prevent Composer from
aborting due to its default root/superuser protection.
  • Loading branch information
swalkinshaw authored Sep 27, 2022
1 parent 82a7893 commit b17bf49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/wordpress-install/tasks/composer-authentications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
command: config
arguments: --auth http-basic.{{ composer_authentication.hostname | quote }} {{ composer_authentication.username | quote }} {{ composer_authentication.password | default("") | quote }}
working_dir: "{{ working_dir }}"
become: no
no_log: true
changed_when: false
when:
Expand Down

0 comments on commit b17bf49

Please sign in to comment.