25 lines
602 B
YAML
25 lines
602 B
YAML
---
|
|
- name: Create CouchDB directory
|
|
file:
|
|
path: "{{ couchdb_folder_name }}"
|
|
state: directory
|
|
owner: "{{ base_user_name }}"
|
|
group: "{{ base_user_name }}"
|
|
mode: 0755
|
|
|
|
- name: Copy CouchDB Compose file
|
|
template:
|
|
src: docker-compose.yml.j2
|
|
dest: "{{ couchdb_folder_name }}/docker-compose.yml"
|
|
owner: "{{ base_user_name }}"
|
|
group: "{{ base_user_name }}"
|
|
mode: 0644
|
|
|
|
- name: Ensure container is up to date
|
|
community.docker.docker_compose:
|
|
project_src: "{{ couchdb_folder_name }}"
|
|
remove_orphans: yes
|
|
pull: yes
|
|
recreate: smart
|
|
state: present
|