Compare commits

..

6 Commits

11 changed files with 81 additions and 5 deletions

View File

@ -1,6 +1,7 @@
--- ---
- name: Evaluate borg client nodes - name: Evaluate borg client nodes
hosts: all hosts: all
tags: clients
gather_facts: false gather_facts: false
tasks: tasks:
- name: Gather configured clients - name: Gather configured clients
@ -10,6 +11,7 @@
- name: Configure borg backups system - name: Configure borg backups system
tags: server
hosts: borg_clients_True:borg hosts: borg_clients_True:borg
debugger: on_failed debugger: on_failed
tasks: tasks:

View File

@ -1,2 +1,4 @@
--- ---
- include_tasks: forgejo_docker.yaml - include_tasks: forgejo_docker.yaml
tags:
- forgejo

View File

@ -1,2 +1,4 @@
--- ---
- include_tasks: docker_newt.yaml - include_tasks: docker_newt.yaml
tags:
- newt

View File

@ -1,2 +1,4 @@
--- ---
- import_tasks: nextcloud_docker_aio.yaml - import_tasks: nextcloud_docker_aio.yaml
tags:
- nextcloud

View File

@ -1,2 +1,4 @@
--- ---
- include_tasks: docker_nginx.yaml - include_tasks: docker_nginx.yaml
tags:
- nginx

View File

@ -1,3 +1,5 @@
--- ---
- ansible.builtin.include_tasks: - include_tasks: docker_pangolin.yaml
file: docker_pangolin.yaml tags:
- pamgolin

View File

@ -0,0 +1,2 @@
vaultwarden_signup_allowed: true
vaultwarden_image_tag: 1.37.2

View File

@ -0,0 +1,4 @@
---
- include_tasks: vaultwarden_docker.yaml
tags:
- vaultwarden

View File

@ -0,0 +1,24 @@
---
- name: Create docker compose directory
ansible.builtin.file:
path: "{{ docker_compose_projects_base_path }}/vaultwarden"
state: directory
mode: '0755'
register: compose_dir
- name: Create data directory
ansible.builtin.file:
path: "{{ compose_dir.path }}/data"
state: directory
mode: '0755'
register: vaultwarden_data_dir
- name: Copy compose file
ansible.builtin.template:
src: templates/vaultwarden_compose.yaml.j2
dest: "{{ compose_dir.path }}/compose.yaml"
- name: Starting Vaultwarden compose project
community.docker.docker_compose_v2:
project_src: "{{ compose_dir.path }}"

View File

@ -0,0 +1,19 @@
networks:
newt:
name: newt_compose_default
external: true
services:
vaultwarden:
image: vaultwarden/server:{{ vaultwarden_image_tag }}
container_name: vaultwarden
restart: always
environment:
# DOMAIN: "https://vaultwarden.example.com" # required when using a reverse proxy; your domain; vaultwarden needs to know it's https to work properly with attachments
SIGNUPS_ALLOWED: "{{ vaultwarden_signup_allowed }}" # Deactivate this with "false" after you have created your account so that no strangers can register
volumes:
- {{ vaultwarden_data_dir.path }}:/data # the path before the : can be changed
ports:
- 11001:80 # you can replace the 11001 with your preferred port
networks:
- newt

View File

@ -0,0 +1,15 @@
---
- name: Install Vaultwarden
hosts: vaultwarden
tasks:
- include_role:
name: geerlingguy.docker
apply:
become: true
become_exe: "{{ become_exe_value }}"
- include_role:
name: "{{ item }}"
loop:
- newt_client
- vaultwarden