Modification des fichiers de configs

This commit is contained in:
2025-12-05 14:02:48 +00:00
parent 562d1f3596
commit 472dd4feb1
5 changed files with 95 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
---
- name: Installation de GLPI avec Docker
hosts: ap31-pt
become: yes
tasks:
- name: Création du dossier glpi
ansible.builtin.file:
path: /root/glpi
state: directory
mode: '0755'
- name: Importation du fichier docker-compose.yml
ansible.builtin.copy:
src: ./files/docker-compose.yml
dest: /root/glpi/docker-compose.yml
mode: '0644'
- name: Importation du fichier .env
ansible.builtin.copy:
src: .env
dest: /root/glpi/.env
mode: '0600'
- name: Pull et lancement du conteneur GLPI
ansible.builtin.shell:
cmd: docker compose pull && docker compose up -d
chdir: /root/glpi