--- - hosts: atlas become: yes vars: CLIPPABLE_ROOT: "{{ CLIPPABLE_MOUNT_POINT }}/clips" tasks: - name: Fetch vars for getting mount points include_vars: file: ../../vars/drives.yml - 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"