30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
#!/bin/bash
|
|
echo " ------ install ansible playbooks ------"
|
|
|
|
if ! hash ansible > /dev/null; then
|
|
echo "* installation de Ansible"
|
|
sudo apt install ansible python3-pip
|
|
fi
|
|
####### lancement des playbooks ansible pour initialisation
|
|
ansible-galaxy install coglinev3.veracrypt
|
|
|
|
echo "vérification et installation des paquets requis"
|
|
#sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/tk_softwares.yml"
|
|
|
|
|
|
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/pip_modules.yml"
|
|
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/node_packages.yml"
|
|
|
|
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow.yml"
|
|
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/server_tk_softwares.yml"
|
|
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/snaps.yml"
|
|
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow_root.yml"
|
|
|
|
|
|
#echo "ajouter dans la crontab utilisateur le script cronjob_nextcloud.sh"
|
|
#echo "# toutes les 5 minutes
|
|
## */5 * * * * bash $WORKFLOW_PATH_PUBLIC/cronjob_nextcloud.sh
|
|
|
|
|
|
|