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.
38 lines
922 B
YAML
38 lines
922 B
YAML
- name: "docker compose down"
|
|
community.docker.docker_compose_v2:
|
|
state: "absent"
|
|
project_src: /var/www/peertube
|
|
register: compose_result
|
|
failed_when: >
|
|
compose_result.failed and
|
|
("is not a directory" not in compose_result.msg)
|
|
|
|
- name: "Create the peertube directory"
|
|
file:
|
|
path: /var/www/peertube
|
|
state: "directory"
|
|
|
|
- name: Create docker-compose.yml file for Peertube
|
|
template:
|
|
src: docker-compose.yml.j2
|
|
dest: /var/www/peertube/docker-compose.yml
|
|
|
|
- name: Create .env file for Peertube
|
|
template:
|
|
src: "env.j2"
|
|
dest: /var/www/peertube/env
|
|
|
|
- name: "docker compose up -d peertube"
|
|
community.docker.docker_compose_v2:
|
|
state: "present"
|
|
pull: policy
|
|
project_src: "/var/www/peertube"
|
|
|
|
- ansible.builtin.lineinfile:
|
|
path: "/backup-dirs"
|
|
line: "/var/www/peertube"
|
|
|
|
- ansible.builtin.lineinfile:
|
|
path: "/backup-dirs"
|
|
line: "/mnt/juice/peertube"
|