32 lines
828 B
YAML
32 lines
828 B
YAML
---
|
|
- hosts: alpha
|
|
become: yes
|
|
vars:
|
|
CLIPPABLE_ROOT: /mnt/drive1
|
|
tasks:
|
|
- name: Create mountpoints for volumes
|
|
file:
|
|
state: directory
|
|
path: "{{ CLIPPABLE_ROOT }}/{{ item }}"
|
|
loop:
|
|
- clips/
|
|
- thumbnails/
|
|
|
|
- name: Pull latest Clippable Image
|
|
community.docker.docker_container:
|
|
name: clippable
|
|
image: registry.gitlab.com/shockrah/clippable:latest
|
|
pull: yes
|
|
restart_policy: always
|
|
recreate: yes
|
|
env:
|
|
SITE_NAME: "Shockrah's Clips"
|
|
SITE_DESC: "Short clips of random stuff I do"
|
|
SITE_URL: "https://clips.shockrah.xyz"
|
|
ports:
|
|
- "8482:8482"
|
|
volumes:
|
|
- "{{CLIPPABLE_ROOT}}/clips:/media/clips"
|
|
- "{{CLIPPABLE_ROOT}}/thumbnails:/media/thumbnails"
|
|
|