add inbucket stack
This commit is contained in:
parent
29f29e2df1
commit
ab147a5543
3 changed files with 25 additions and 0 deletions
|
@ -12,3 +12,4 @@
|
|||
- {role: hedgedoc, tags: hedgedoc}
|
||||
- {role: overleaf, tags: overleaf}
|
||||
- {role: cyberchef, tags: cyberchef}
|
||||
- {role: inbucket, tags: inbucket}
|
||||
|
|
9
ansible/roles/inbucket/docker-stack.yml.j2
Normal file
9
ansible/roles/inbucket/docker-stack.yml.j2
Normal file
|
@ -0,0 +1,9 @@
|
|||
# vi: ft=yaml
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
kms-server:
|
||||
image: inbucket/inbucket
|
||||
ports:
|
||||
- 2500:2500
|
||||
- 9000:9000
|
15
ansible/roles/inbucket/tasks/main.yml
Normal file
15
ansible/roles/inbucket/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- name: Create working directory
|
||||
file:
|
||||
path: /srv/inbucket
|
||||
state: directory
|
||||
|
||||
- name: Copy Docker stack file
|
||||
template:
|
||||
src: "{{ role_path }}/docker-stack.yml.j2"
|
||||
dest: /srv/inbucket/docker-stack.yml
|
||||
|
||||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: inbucket
|
||||
compose:
|
||||
- /srv/inbucket/docker-stack.yml
|
Reference in a new issue