Modification des fichiers de configs
This commit is contained in:
29
partie2/ansible/install-glpi.yml
Normal file
29
partie2/ansible/install-glpi.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user