From 759f7a3d03df12733ccc2c1e2f6bc617a4f85b2b Mon Sep 17 00:00:00 2001 From: Alhassane Kone Date: Fri, 15 Dec 2023 08:28:03 +0100 Subject: [PATCH] maj projet AP4 --- sio2/AP4/Vagrantfile | 2 +- sio2/AP4/{ => provision}/glpi.yml | 3 +-- sio2/AP4/{ => provision}/roles/bdd/handlers/main.yml | 0 sio2/AP4/{ => provision}/roles/bdd/tasks/main.yml | 0 .../AP4/{roles/install => provision/roles/glpi}/tasks/main.yml | 2 +- sio2/AP4/{ => provision}/roles/web/handlers/main.yml | 0 sio2/AP4/{ => provision}/roles/web/tasks/main.yml | 0 7 files changed, 3 insertions(+), 4 deletions(-) rename sio2/AP4/{ => provision}/glpi.yml (65%) rename sio2/AP4/{ => provision}/roles/bdd/handlers/main.yml (100%) rename sio2/AP4/{ => provision}/roles/bdd/tasks/main.yml (100%) rename sio2/AP4/{roles/install => provision/roles/glpi}/tasks/main.yml (78%) rename sio2/AP4/{ => provision}/roles/web/handlers/main.yml (100%) rename sio2/AP4/{ => provision}/roles/web/tasks/main.yml (100%) diff --git a/sio2/AP4/Vagrantfile b/sio2/AP4/Vagrantfile index ef3ed25..edb238a 100644 --- a/sio2/AP4/Vagrantfile +++ b/sio2/AP4/Vagrantfile @@ -15,7 +15,7 @@ Vagrant.configure("2") do |config| glpi.vm.hostname = "glpi" # Nom de la machine glpi.vm.network "public_network" #, ip: "192.168.0.111"# Set static IP glpi.vm.provision "ansible" do |ansible| - ansible.playbook = "glpi.yml" # Lance le playbook glpi.yml + ansible.playbook = "provision/glpi.yml" # Lance le playbook glpi.yml end end end diff --git a/sio2/AP4/glpi.yml b/sio2/AP4/provision/glpi.yml similarity index 65% rename from sio2/AP4/glpi.yml rename to sio2/AP4/provision/glpi.yml index b6772c7..41be68e 100644 --- a/sio2/AP4/glpi.yml +++ b/sio2/AP4/provision/glpi.yml @@ -1,7 +1,6 @@ --- - hosts: all - roles: - web - bdd - - install + - glpi diff --git a/sio2/AP4/roles/bdd/handlers/main.yml b/sio2/AP4/provision/roles/bdd/handlers/main.yml similarity index 100% rename from sio2/AP4/roles/bdd/handlers/main.yml rename to sio2/AP4/provision/roles/bdd/handlers/main.yml diff --git a/sio2/AP4/roles/bdd/tasks/main.yml b/sio2/AP4/provision/roles/bdd/tasks/main.yml similarity index 100% rename from sio2/AP4/roles/bdd/tasks/main.yml rename to sio2/AP4/provision/roles/bdd/tasks/main.yml diff --git a/sio2/AP4/roles/install/tasks/main.yml b/sio2/AP4/provision/roles/glpi/tasks/main.yml similarity index 78% rename from sio2/AP4/roles/install/tasks/main.yml rename to sio2/AP4/provision/roles/glpi/tasks/main.yml index 581a525..5f0d8f4 100644 --- a/sio2/AP4/roles/install/tasks/main.yml +++ b/sio2/AP4/provision/roles/glpi/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: 1. Telechargement de l'archive de glpi 10.0.10 get_url: - url: https://github.com/glpi-project/glpi/releases/download/10.0.10/glpi-10.0.10.tgz + url: http://depl.sio.lan/store/glpi-10.0.10.tgz dest: /tmp - name: 2. Extraire glpi 10.0.10.tgz vers /tmp/ diff --git a/sio2/AP4/roles/web/handlers/main.yml b/sio2/AP4/provision/roles/web/handlers/main.yml similarity index 100% rename from sio2/AP4/roles/web/handlers/main.yml rename to sio2/AP4/provision/roles/web/handlers/main.yml diff --git a/sio2/AP4/roles/web/tasks/main.yml b/sio2/AP4/provision/roles/web/tasks/main.yml similarity index 100% rename from sio2/AP4/roles/web/tasks/main.yml rename to sio2/AP4/provision/roles/web/tasks/main.yml