27 lines
874 B
YAML
27 lines
874 B
YAML
- name: Create data folder
|
|
ansible.builtin.include_role:
|
|
role: docker/container-data
|
|
vars:
|
|
dir_name: "{{ data_dir_name }}"
|
|
|
|
- name: Create release notes folder
|
|
ansible.builtin.file:
|
|
dest: "{{ container_data_base_path }}/{{ data_dir_name }}/release-notes"
|
|
state: directory
|
|
mode: '0777'
|
|
|
|
- name: Create config file
|
|
ansible.builtin.template:
|
|
src: config.j2
|
|
dest: "{{ container_data_base_path }}/{{ data_dir_name }}/openchangelog.yml"
|
|
mode: '0777'
|
|
|
|
- name: Deploy container
|
|
community.docker.docker_container:
|
|
name: "{{ container_name }}"
|
|
image: "ghcr.io/jonashiltl/openchangelog:0.6.2"
|
|
ports:
|
|
- "{{ port }}:6001"
|
|
volumes:
|
|
- "{{ container_data_base_path }}/{{ data_dir_name }}/release-notes:/release-notes"
|
|
- "{{ container_data_base_path }}/{{ data_dir_name }}/openchangelog.yml:/etc/openchangelog.yml" |