diff --git a/playbooks/all.yml b/playbooks/all.yml index 3df8acc..1868667 100644 --- a/playbooks/all.yml +++ b/playbooks/all.yml @@ -13,6 +13,7 @@ - {role: 'jitsi', tags: 'jitsi'} - {role: 'freshrss', tags: 'freshrss'} - {role: 'blog', tags: 'blog'} + - {role: 'inbucket', tags: 'inbucket'} - name: Setup dataserver hosts: dataserver roles: diff --git a/roles/inbucket/files/docker-compose.yml b/roles/inbucket/files/docker-compose.yml new file mode 100644 index 0000000..349da8d --- /dev/null +++ b/roles/inbucket/files/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.7" + +services: + kms-server: + image: inbucket/inbucket + container_name: inbucket + ports: + - 2500:2500 + - 9000:9000 + restart: always + diff --git a/roles/inbucket/meta/main.yml b/roles/inbucket/meta/main.yml new file mode 100644 index 0000000..7f5b1d3 --- /dev/null +++ b/roles/inbucket/meta/main.yml @@ -0,0 +1,4 @@ +dependencies: + - role: common + - role: docker + \ No newline at end of file diff --git a/roles/inbucket/tasks/main.yml b/roles/inbucket/tasks/main.yml new file mode 100644 index 0000000..2518ba7 --- /dev/null +++ b/roles/inbucket/tasks/main.yml @@ -0,0 +1,14 @@ +- name: Create app directory + file: + path: "{{ service_dir }}" + state: directory +- name: Copy Docker Compose script + copy: + src: "{{ role_path }}/files/docker-compose.yml" + dest: "{{ service_dir }}/docker-compose.yml" +- name: Start the Docker Compose + docker_compose: + project_src: "{{ service_dir }}" + pull: true + remove_orphans: true + diff --git a/roles/inbucket/vars/main.yml b/roles/inbucket/vars/main.yml new file mode 100644 index 0000000..98c77ef --- /dev/null +++ b/roles/inbucket/vars/main.yml @@ -0,0 +1,2 @@ +service_name: inbucket +service_dir: "{{ base_service_dir }}/{{ service_name }}"