version finale

This commit is contained in:
Your Name
2025-12-05 15:49:05 +01:00
parent a56518aa77
commit b9a7c64819
4 changed files with 135 additions and 14 deletions

View File

@@ -15,18 +15,54 @@
- name: creation dossier payara
ansible.builtin.file:
path: /home/debian/payara
path: /SDIS-29-3.p2/ansible/payara
state: directory
mode: '0755'
become: no
- name: importation
- name: importation compose.yml
ansible.builtin.copy:
src: ./compose.yml
dest: ~/paraya/compose.yml
dest: /SDIS-29-3.p2/ansible/paraya/compose.yml
mode: '0755'
- name: importation variables.env
ansible.builtin.copy:
src: ./variables.env
dest: /SDIS-29-3.p2/ansible/paraya
mode: '0755'
become: no
- name: docker pull
ansible.builtin.script:
cmd: cd ~/payara ; docker compose pull
- name: Création du fichier docker.service.d
ansible.builtin.file:
path: /etc/systemd/system/docker.service.d
state: directory
- name: Copy des règles de proxy
ansible.builtin.copy:
src: ./http-proxy.conf
dest: /etc/systemd/system/docker.service.d
- name: Restart daemon-reload
ansible.builtin.shell:
cmd:
systemctl daemon-reload
- name: Docker restart
ansible.builtin.service:
name: docker
state: restarted
- name: Docker pull
ansible.builtin.shell:
cmd:
cd ~/payara && docker compose pull
- name: Docker up
ansible.builtin.shell:
cmd:
cd ~/payara && docker compose up -d