diff --git a/files/os/gmo-cfg.sh b/files/os/gmo-cfg.sh index c94663b..aaa461e 100644 --- a/files/os/gmo-cfg.sh +++ b/files/os/gmo-cfg.sh @@ -34,17 +34,17 @@ alias sudo='sudo --preserve-env=PATH env' # https://www.petefreitag.com/blog/env if ! is_scp; then if [[ "$USER" == "gilles" || "$USER" == "root" ]]; then host_fqdn=$(hostname) - host_shot=$(hostname -s) + host_short=$(hostname -s) ip=$(hostname -I) dist=$(cat /etc/redhat-release) kern=$(uname -r) cat << EOF ------------------------------------------------------ +--------------------------------------------------------- Host name (fqdn): $host_fqdn Host name (short): $host_short Distribution: $dist Kernel: $kern ------------------------------------------------------ +---------------------------------------------------------- EOF fi fi diff --git a/inst-raps.sh b/inst-raps.sh index da9c3f4..d6b12a3 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -168,9 +168,17 @@ printSuccess "Role updated successfully" #----------------------------------------------------------------------------- printInfo "Execute playbook" ~/.local/bin/ansible-playbook main.yml --vault-password-file ~/ansible/.vault_pass.txt -if [ $? -ne 0 ]; then printError "Problem to execute playbook";exit; fi +if [ $? -ne 0 ]; then printError "Problem to execute playbook" fi printSuccess "Ansible playbook finished" +#----------------------------------------------------------------------------- +# Clean upset timezone +#----------------------------------------------------------------------------- +printInfo "CleanUp" +rm -rf /tmp/yumupd +if [ $? -ne 0 ]; then printError "Problem to cleanUP";exit; fi +printSuccess "successfully" + #----------------------------------------------------------------------------- # set timezone #----------------------------------------------------------------------------- diff --git a/yum-check-update.yml b/yum-check-update.yml index 6edbeda..7ef4c04 100644 --- a/yum-check-update.yml +++ b/yum-check-update.yml @@ -10,9 +10,3 @@ src: /usr/local/bin/check-yum-updates.sh dest: /etc/cron.daily/check-yum-updates.sh state: link - -- name: delete source - file: - path: /tmp/yumupd - state: absent -