2022-12-29 21:13:31 +00:00
|
|
|
# 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:
|
2022-11-26 08:15:18 +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
|
2023-07-09 18:27:32 +00:00
|
|
|
copy:
|
|
|
|
src: privatebin/conf.php
|
2022-11-26 08:15:18 +00:00
|
|
|
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
|