forked from data.coop/ansible
30 lines
799 B
YAML
30 lines
799 B
YAML
---
|
|
|
|
- name: create privatebin volume folders
|
|
file:
|
|
name: "{{ privatebin.volume_folder }}/{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- cfg
|
|
- data
|
|
|
|
- name: upload privatebin config
|
|
template:
|
|
src: files/configs/privatebin-conf.php
|
|
dest: "{{ privatebin.volume_folder }}/cfg/conf.php"
|
|
|
|
- name: privatebin app container
|
|
docker_container:
|
|
name: privatebin
|
|
image: jgeusebroek/privatebin:latest
|
|
restart_policy: unless-stopped
|
|
volumes:
|
|
- "{{ privatebin.volume_folder }}/cfg:/privatebin/cfg"
|
|
- "{{ privatebin.volume_folder }}/data:/privatebin/data"
|
|
networks:
|
|
- name: external_services
|
|
env:
|
|
VIRTUAL_HOST: "{{ privatebin.domain }}"
|
|
LETSENCRYPT_HOST: "{{ privatebin.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|