diff --git a/roles/services/files/scripts/check-memory.sh b/roles/services/files/scripts/check-memory.sh index cfb5938..d04ed75 100755 --- a/roles/services/files/scripts/check-memory.sh +++ b/roles/services/files/scripts/check-memory.sh @@ -1,6 +1,6 @@ #!/bin/bash -minFree=5 +minFree=1 memFree=$(free --gibi | awk '$1 == "Mem:" { print $7 }') if [ "$memFree" -le "$minFree" ]; then diff --git a/roles/services/tasks/mariadb.yml b/roles/services/tasks/mariadb.yml index 1f18ef7..9472247 100644 --- a/roles/services/tasks/mariadb.yml +++ b/roles/services/tasks/mariadb.yml @@ -1,3 +1,6 @@ +# Revisar /root/scripts/check-memory.sh --> No es óptimo hacer lo que hace ese programa +# Ver como lanzar el mysqltuner.pl + - name: Ensure Install requirements for MariaDB repository setup script apt: name: "{{ mariadb_requeriments }}"