From 9239a2c4836182152f5ad9800e7a450bb581efe4 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 5 Jan 2023 06:24:09 +0000 Subject: [PATCH] Update file executable_install-program --- home/dot_local/bin/executable_install-program | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 307596f4..ab0bbaee 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -619,7 +619,7 @@ async function beforeInstall(packageManager) { if (unbuffer) { unbufferPrefix = 'unbuffer' } - await $`${unbufferPrefix} ansible 127.0.0.1 -vv -b ${process.env.USER} -e '{ ansible_connection: "local", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup` + await $`${unbufferPrefix} ansible 127.0.0.1 -vv -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup` } else if (packageManager === 'apk') { await $`sudo apk update` } else if (packageManager === 'apt') { @@ -1077,7 +1077,7 @@ async function installPackageList(packageManager, packages) { unbufferPrefix = 'unbuffer' } const verboseMode = process.env.DEBUG_MODE === 'on' ? 'vv' : '' - await $`ansible 127.0.0.1 -v${verboseMode} -b ${process.env.USER} -e '{ ansible_connection: "local", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}` + await $`ansible 127.0.0.1 -v${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}` log('success', 'Install', `${pkg} successfully installed via ${packageManager}`) } catch (e) { log('error', 'Install Failure', `There was an error installing ${pkg} with Ansible`)