Compare commits

..

No commits in common. "e10be16b85a87e690ef19b31007b2f83505fad0d" and "9aca96187b2a801c646e168262bd9cf6712cf355" have entirely different histories.

3 changed files with 1 additions and 48 deletions

View File

@ -14,4 +14,3 @@
- include_tasks: tasks/cron.yml - include_tasks: tasks/cron.yml
- include_tasks: tasks/packages.yml - include_tasks: tasks/packages.yml
- include_tasks: tasks/loritz-user.yml - include_tasks: tasks/loritz-user.yml
- include_tasks: tasks/bin.yml

View File

@ -1,7 +0,0 @@
- name: Copie scriptes vers bin
copy:
src: files/bin/
dest: /usr/bin/
owner: root
group: root
mode: 0755

View File

@ -1,39 +0,0 @@
#!/bin/bash
# Test si root
if [ "$EUID" -ne 0 ]
then echo "Merci d'éxécuter en tant que root"
exit
fi
# Demande confirmation
while true; do
read -p "Etes vous sûr de vouloir réinitialiser l'utilisateur loritz ? (y/n) " yn
case $yn in
[yY] ) echo "OK, nous allons commencer !";
break;;
[nN] ) echo "Ah... Dommage";
exit;;
* ) echo Réponse invalide;;
esac
done
# Début du travail
echo ""
echo "***** Réinitialisation de l'utilisateur loritz *****"
echo ""
userdel -r -f loritz
ansible-pull -U https://git.axolito.fr/Axel/laptop_playbook.git
echo ""
echo "***** Réinitialisation terminée *****"
echo ""
echo "***** Le PC va redémarrer dans 5 secondes *****"
echo ""
sleep 5s
reboot