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