2023-07-24 21:22:41 +03:00
|
|
|
- name: Read versions from file
|
|
|
|
slurp:
|
|
|
|
src: "roles/common/files/versions/jira/9.jdk8-11-17.txt"
|
|
|
|
register: version_output
|
|
|
|
|
|
|
|
- name: Set version variable
|
|
|
|
set_fact:
|
|
|
|
jira_versions: "{{ version_output['content'] | b64decode | trim | split('\n') }}"
|
|
|
|
|
|
|
|
- name: Create directories for Jira versions
|
|
|
|
file:
|
2024-02-09 13:47:59 +03:00
|
|
|
path: "{{ target_directory_jira_9 }}/{{ item }}"
|
2023-07-24 21:22:41 +03:00
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
2024-02-09 13:47:59 +03:00
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy template with link to each version directory
|
|
|
|
template:
|
|
|
|
src: "template.env.j2"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/.env"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy docker-compose.yml from 'files' directory to each version directory
|
|
|
|
copy:
|
|
|
|
src: "docker-compose.jdk8-11-17.yml"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/docker-compose.yml"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy Dockerfile from 'files' directory to each version directory
|
|
|
|
copy:
|
2023-07-25 00:34:13 +03:00
|
|
|
src: "Dockerfile.jdk8"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy Dockerfile.jdk11 from 'files' directory to each version directory
|
|
|
|
copy:
|
|
|
|
src: "Dockerfile.jdk11"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile.jdk11"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy Dockerfile.jdk17 from 'files' directory to each version directory
|
|
|
|
copy:
|
|
|
|
src: "Dockerfile.jdk17"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/Dockerfile.jdk17"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy entrypoint.sh from 'files' directory to each version directory
|
|
|
|
copy:
|
|
|
|
src: "entrypoint.sh"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/entrypoint.sh"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|
|
|
|
|
|
|
|
- name: Copy Makefile from 'files' directory to each version directory
|
|
|
|
copy:
|
|
|
|
src: "Makefile"
|
2024-02-09 13:47:59 +03:00
|
|
|
dest: "{{ target_directory_jira_9 }}/{{ item }}/Makefile"
|
|
|
|
force: true
|
2023-07-24 21:22:41 +03:00
|
|
|
with_items: "{{ jira_versions }}"
|