[IMPROVED] Nueva funcionalidad que actualiza pip3 y se instala ansible

This commit is contained in:
Mauro Rosero P. 2025-01-04 23:43:10 -05:00
parent 4490061c29
commit 3d46c8e394
Signed by: mrosero
GPG key ID: 83BD2A5F674B7E26
3 changed files with 27 additions and 0 deletions

View file

@ -146,3 +146,12 @@ display_devstools_header "- $bomsg_000"
# Run install with sudo
sudo bash -c "$(declare -f load_bootstrap_msg; declare -f install); install $BIN_HOME $BIN_LIBS $BIN_MESG $BIN_LANG"
result=$?
# Run install ansible with regular user
if [ $result -eq 0 ]
then
# Load bootstrap bash library
source $BIN_HOME/$BIN_LIBS/bootstrap.lib
ansible_install
fi

View file

@ -211,6 +211,20 @@ function podman_install() {
}
function ansible_install() {
echo "${anmsg_001}"
python3 -m pip install --upgrade pip
python3 -m pip install --user ansible
if [ $? -eq 0 ]
then
echo "${anmsg_003}"
return 0
fi
echo "${anmsg_002}"
exit 1
}
# Set how unprivileged port 53 (dns)
function unprivileged_port53() {

View file

@ -37,6 +37,10 @@ pymsg_004="Dialog instalado satisfactoriamente"
pdmsg_001="Instalando Podman..."
pdmsg_003="Podman fue instalado satisfactoriamente"
anmsg_001="Instalando Ansible..."
anmsg_003="Error en la instalación de Ansible!"
anmsg_003="Ansible fue instalado satisfactiramente"
domsg_005="----> Docker previamente instalado, desinstale para poder instalar PODMAN o utilice DOCKER"
bomsg_101_1="Uso:"