Update file executable_install-program
This commit is contained in:
parent
ea02b3205d
commit
dc68daa0d4
1 changed files with 2 additions and 1 deletions
|
@ -1147,7 +1147,8 @@ async function installPackageList(packageManager, packages) {
|
|||
}
|
||||
const verboseMode = process.env.DEBUG_MODE === 'true' ? 'vv' : ''
|
||||
if (osPlatform === 'darwin' || osPlatform === 'linux' || osPlatform === 'windows') {
|
||||
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ansible 127.0.0.1 -v${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "root", ansible_user: "${process.env.USER}", ansible_family: "${osPlatform}", install_homebrew: False }' -m include_role -a name=${pkg}`
|
||||
const capitalOsPlatform = osPlatform.charAt(0).toUpperCase() + osPlatform.slice(1)
|
||||
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ansible 127.0.0.1 -v${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "root", ansible_user: "${process.env.USER}", ansible_family: "${capitalOsPlatform}", install_homebrew: False }' -m include_role -a name=${pkg}`
|
||||
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
|
||||
} else {
|
||||
log('warn', 'Ansible', 'Unsupported platform - ' + osPlatform)
|
||||
|
|
Loading…
Reference in a new issue