You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB
YAML

- name: "docker compose down"
community.docker.docker_compose_v2:
state: "absent"
project_src: "{{ peertube_install_dir }}"
register: compose_result
failed_when: >
compose_result.failed and
("is not a directory" not in compose_result.msg) and
("does not contain compose.yaml" not in compose_result.msg)
- name: "Create the peertube directory"
file:
path: "{{ peertube_install_dir }}"
state: "directory"
- name: Create docker-compose.yml file for Peertube
template:
src: docker-compose.yml.j2
dest: "{{ peertube_install_dir }}/docker-compose.yml"
- name: Create .env file for Peertube
template:
src: "env.j2"
dest: "{{ peertube_install_dir }}/env"
- name: "docker compose up -d peertube"
community.docker.docker_compose_v2:
state: "present"
pull: policy
project_src: "{{ peertube_install_dir }}"
- ansible.builtin.lineinfile:
path: "/backup-dirs"
line: "{{ peertube_install_dir }}"
- ansible.builtin.lineinfile:
path: "/backup-dirs"
line: "/mnt/juice/peertube"