2019-02-13 07:50:42 +00:00
|
|
|
---
|
2019-02-13 09:05:00 +00:00
|
|
|
|
|
|
|
- name: create privatebin volume folders
|
|
|
|
file:
|
2022-11-25 12:55:50 +00:00
|
|
|
name: "{{ services.privatebin.volume_folder }}/{{ volume }}"
|
2019-02-13 09:05:00 +00:00
|
|
|
state: directory
|
2019-02-13 09:35:45 +00:00
|
|
|
loop:
|
2019-02-13 09:05:00 +00:00
|
|
|
- cfg
|
|
|
|
- data
|
2019-02-13 09:35:45 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: volume
|
2019-02-13 09:05:00 +00:00
|
|
|
|
|
|
|
- name: upload privatebin config
|
|
|
|
template:
|
|
|
|
src: files/configs/privatebin-conf.php
|
2022-11-25 12:55:50 +00:00
|
|
|
dest: "{{ services.privatebin.volume_folder }}/cfg/conf.php"
|
2019-02-13 07:50:42 +00:00
|
|
|
|
|
|
|
- name: privatebin app container
|
|
|
|
docker_container:
|
|
|
|
name: privatebin
|
2022-11-25 12:55:50 +00:00
|
|
|
image: jgeusebroek/privatebin:{{ services.privatebin.version }}
|
2019-02-13 07:54:05 +00:00
|
|
|
restart_policy: unless-stopped
|
2019-02-13 07:50:42 +00:00
|
|
|
volumes:
|
2022-11-25 12:55:50 +00:00
|
|
|
- "{{ services.privatebin.volume_folder }}/cfg:/privatebin/cfg"
|
|
|
|
- "{{ services.privatebin.volume_folder }}/data:/privatebin/data"
|
2019-02-13 07:50:42 +00:00
|
|
|
networks:
|
|
|
|
- name: external_services
|
|
|
|
env:
|
2022-11-25 12:55:50 +00:00
|
|
|
VIRTUAL_HOST: "{{ services.privatebin.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.privatebin.domain }}"
|
2019-02-13 07:50:42 +00:00
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|