projet AP4 ansible glpi

This commit is contained in:
Alhassane Kone
2023-12-07 14:10:44 +01:00
parent 4f6469cd98
commit fc7d4de480
7 changed files with 245 additions and 0 deletions

22
sio2/AP4/Vagrantfile vendored Normal file
View File

@@ -0,0 +1,22 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: <<-SHELL
# export http_proxy=http://10.121.38.1:8080
# export https_proxy=http://10.121.38.1:8080
timedatectl set-timezone Europe/Paris
apt-get -y update
apt-get -y upgrade
SHELL
config.vm.define "glpi" do |glpi| # VM No'1
glpi.vm.box = "debian/bookworm64" # Type de la machine
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
end
end
end