datacoop.ansible/roles/docker/tasks/services/privatebin.yml

28 lines
667 B
YAML

# vim: ft=yaml.ansible
---
- name: create privatebin volume folders
file:
name: "{{ services.privatebin.volume_folder }}/{{ volume }}"
state: directory
loop:
- cfg
- data
loop_control:
loop_var: volume
- name: upload privatebin config
copy:
src: privatebin/conf.php
dest: "{{ services.privatebin.volume_folder }}/cfg/conf.php"
- name: Upload Compose file for PrivateBin
template:
src: compose-files/privatebin.yml.j2
dest: "{{ services.privatebin.volume_folder }}/docker-compose.yml"
- name: Deploy PrivateBin
docker_compose:
project_src: "{{ services.private.volume_folder }}"
pull: true
state: present