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_repo: "https://gite.slm-lab.net/Chabdeltsang/Neah-Enkun.git"
|
||||||
git_dest: "/opt/Neah-Enkun"
|
git_dest: "/opt/Neah-Enkun"
|
||||||
git_branch: "master"
|
git_branch: "master"
|
||||||
|
portainer_password: "@wp@36#@%yXo2@y78&$mXeN#6E@W2r9d"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Mise à jour des paquets et montée de version
|
- name: Mise à jour des paquets et montée de version
|
||||||
apt:
|
apt:
|
||||||
@ -58,6 +59,11 @@
|
|||||||
version: "{{ git_branch }}"
|
version: "{{ git_branch }}"
|
||||||
update: yes
|
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
|
- name: Lancer Docker Compose up
|
||||||
command: "docker compose up -d --build --remove-orphans"
|
command: "docker compose up -d --build --remove-orphans"
|
||||||
args:
|
args:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user