debian@ap-33ans
This commit is contained in:
0
ansible/apdb.yml
Normal file
0
ansible/apdb.yml
Normal file
0
ansible/apdbdump.yml
Normal file
0
ansible/apdbdump.yml
Normal file
21
ansible/compose.yml
Normal file
21
ansible/compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
payara:
|
||||
image: payara/server-full:6.2025.9-jdk17
|
||||
container_name: payara
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "4848:4848"
|
||||
- "8181:8181"
|
||||
env_file:
|
||||
- "variables.env"
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
container_name: db
|
||||
ports:
|
||||
- "3336:3306"
|
||||
env_file:
|
||||
- "variables.env"
|
||||
volumes:
|
||||
- ./data/db_data:/var/lib/mysql
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
2
ansible/hosts.ini
Normal file
2
ansible/hosts.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[ap33-pt]
|
||||
ap33-pt ansible_host=172.16.0.125
|
||||
32
ansible/payara.yml
Normal file
32
ansible/payara.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name:
|
||||
hosts: ap33-pt
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: download docker
|
||||
ansible.builtin.get_url:
|
||||
url: http://depl.sio.lan/store/get-docker.sh
|
||||
dest: /tmp
|
||||
|
||||
- name: execution script get docker
|
||||
ansible.builtin.shell:
|
||||
cmd: export https_proxy=http://10.121.38.1:8080 ; bash /tmp/get-docker.sh
|
||||
|
||||
- name: creation dossier payara
|
||||
ansible.builtin.file:
|
||||
path: /home/debian/payara
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: no
|
||||
|
||||
- name: importation
|
||||
ansible.builtin.copy:
|
||||
src: ./compose.yml
|
||||
dest: ~/paraya/compose.yml
|
||||
mode: '0755'
|
||||
become: no
|
||||
|
||||
- name: docker pull
|
||||
ansible.builtin.script:
|
||||
cmd: cd ~/payara ; docker compose pull
|
||||
Reference in New Issue
Block a user