From b17bf491c159bf51f71799bf87bf83fcf1470fbf Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Mon, 26 Sep 2022 21:24:06 -0400 Subject: [PATCH] Don't use sudo for composer authentications (#1427) Sets `become: no` to avoid sudo usage which will prevent Composer from aborting due to its default root/superuser protection. --- roles/wordpress-install/tasks/composer-authentications.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/wordpress-install/tasks/composer-authentications.yml b/roles/wordpress-install/tasks/composer-authentications.yml index 8ad265fe24..be2e3377c8 100644 --- a/roles/wordpress-install/tasks/composer-authentications.yml +++ b/roles/wordpress-install/tasks/composer-authentications.yml @@ -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: