2023-09-26 11:40:59 +02:00
|
|
|
---
|
|
|
|
# tasks file for is-registry
|
2023-10-03 16:32:13 +02:00
|
|
|
- name: Create the directory where the compose file will be installed
|
|
|
|
ansible.builtin.file:
|
|
|
|
dest: '{{ is-registry_compose_dir }}'
|
|
|
|
state: directory
|
|
|
|
mode: 0750
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
|
|
|
|
- name: Install the docker compose file
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: docker-compose.yml.j2
|
|
|
|
dest: '{{ is-registry_compose_dir }}/is-registry-docker-compose.yml'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install the GHNConfig.xml
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: GHNConfig.xml.j2
|
|
|
|
dest: "{{ is-registry_compose_dir }}/GHNConfig.xml"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
|
|
|
|
- name: Install the jndi-config.xml
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: jndi-config.xml.j2
|
|
|
|
dest: "{{ is-registry_compose_dir }}/jndi-config.xml"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
|
|
|
|
- name: Install the server-config.wsdd
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: server-config.wsdd.j2
|
|
|
|
dest: "{{ is-registry_compose_dir }}/server-config.wsdd"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0400
|
|
|
|
|
|
|
|
- name: Create the secret for GHNConfig.xml
|
|
|
|
community.docker.docker_secret:
|
|
|
|
name: ghn-config
|
|
|
|
data_src: '{{ is-registry_compose_dir }}/GHNConfig.xml'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create the secret for jndi-config.xml
|
|
|
|
community.docker.docker_secret:
|
|
|
|
name: jndi-config
|
|
|
|
data_src: '{{ is-registry_compose_dir }}/jndi-config.xml'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create the secret for server-config.wsdd
|
|
|
|
community.docker.docker_secret:
|
|
|
|
name: server-config
|
|
|
|
data_src: '{{ is-registry_compose_dir }}/server-config.wsdd'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Start the project stack on Docker Swarm
|
|
|
|
community.docker.docker_stack:
|
|
|
|
name: '{{ is-registry-stack }}'
|
|
|
|
state: present
|
|
|
|
compose:
|
|
|
|
- '{{ is-registry_compose_dir }}/is-registry-docker-compose.yml'
|