docker-scripts/bin/ansible/roles/atlassian.jira/tasks/atlassian.jira.4.jdk6.yml

54 lines
1.6 KiB
YAML
Raw Normal View History

2023-07-25 16:06:39 +03:00
# Cant template urls because each versions have unical link. need to rework
- name: Read versions from file
slurp:
src: "roles/common/files/versions/jira/4.jdk6.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:
path: "{{ target_directory_jira_4 }}/{{ item }}"
state: directory
mode: '0755'
force: true
with_items: "{{ jira_versions }}"
2023-07-25 16:06:39 +03:00
#- name: Copy template with link to each version directory
# template:
# src: "template.env.j2"
# dest: "{{ target_directory_jira_4 }}/{{ item }}/.env"
# force: true
2023-07-25 16:06:39 +03:00
# with_items: "{{ jira_versions }}"
- name: Copy docker-compose.yml from 'files' directory to each version directory
copy:
src: "docker-compose.yml"
dest: "{{ target_directory_jira_4 }}/{{ item }}/docker-compose.yml"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Dockerfile from 'files' directory to each version directory
copy:
src: "Dockerfile.jdk6"
dest: "{{ target_directory_jira_4 }}/{{ item }}/Dockerfile"
force: true
with_items: "{{ jira_versions }}"
- name: Copy entrypoint.sh from 'files' directory to each version directory
copy:
src: "entrypoint.sh"
dest: "{{ target_directory_jira_4 }}/{{ item }}/entrypoint.sh"
force: true
with_items: "{{ jira_versions }}"
- name: Copy Makefile from 'files' directory to each version directory
copy:
src: "Makefile"
dest: "{{ target_directory_jira_4 }}/{{ item }}/Makefile"
force: true
with_items: "{{ jira_versions }}"