Ajout de la configuration automatique de Portainer dans le playbook Ansible
This commit is contained in:
parent
95a211d965
commit
62b50998fb
@ -6,6 +6,7 @@
|
||||
git_repo: "https://gite.slm-lab.net/Chabdeltsang/Neah-Enkun.git"
|
||||
git_dest: "/opt/Neah-Enkun"
|
||||
git_branch: "master"
|
||||
portainer_password: "@wp@36#@%yXo2@y78&$mXeN#6E@W2r9d"
|
||||
tasks:
|
||||
- name: Mise à jour des paquets et montée de version
|
||||
apt:
|
||||
@ -58,6 +59,11 @@
|
||||
version: "{{ git_branch }}"
|
||||
update: yes
|
||||
|
||||
- name: Écrire le mot de passe Portainer dans un fichier temporaire
|
||||
copy:
|
||||
content: "{{ portainer_password }}"
|
||||
dest: "{{ git_dest }}/portainer_password"
|
||||
|
||||
- name: Lancer Docker Compose up
|
||||
command: "docker compose up -d --build --remove-orphans"
|
||||
args:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user