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

28 lines
667 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2019-02-13 07:50:42 +00:00
---
2019-02-13 09:05:00 +00:00
- name: create privatebin volume folders
file:
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
copy:
src: privatebin/conf.php
dest: "{{ services.privatebin.volume_folder }}/cfg/conf.php"
2019-02-13 07:50:42 +00:00
2023-09-30 16:15:27 +00:00
- 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