* tasks/main.yml: prefix all builtin modules with ansible.builtin (file, template) — silences ansible-lint fqcn[action-core] and matches the convention used by the other roles in this collection. * meta/main.yml: change min_ansible_version from the float 2.14 to the string '2.14'. ansible-galaxy's schema requires a string here (ansible-lint schema[meta] complains otherwise — same fix I just applied to the opnform role).
28 lines
734 B
YAML
28 lines
734 B
YAML
#SPDX-License-Identifier: MIT-0
|
|
---
|
|
# tasks file for send
|
|
|
|
- name: Create docker compose directory
|
|
ansible.builtin.file:
|
|
path: "{{ send_docker_compose_dir }}"
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: Create local upload directory
|
|
ansible.builtin.file:
|
|
path: "{{ send_docker_volume_dir }}/uploads"
|
|
state: directory
|
|
mode: '0755'
|
|
when: send_storage_backend == "local"
|
|
|
|
- name: Create docker-compose file for send
|
|
ansible.builtin.template:
|
|
src: docker-compose.yml.j2
|
|
dest: "{{ send_docker_compose_dir }}/docker-compose.yml"
|
|
mode: '0644'
|
|
notify: restart send
|
|
|
|
- name: Start send container
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ send_docker_compose_dir }}"
|
|
state: present
|