Compare commits
6 Commits
forgejo_co
...
main
| Author | SHA1 | Date |
|---|---|---|
|
|
8d8ea94b3f | |
|
|
228f3f1b33 | |
|
|
a712238b07 | |
|
|
d0748e0bbf | |
|
|
2a1e7b90a9 | |
|
|
b7bcc1a8b2 |
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
- name: Evaluate borg client nodes
|
||||
hosts: all
|
||||
tags: clients
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Gather configured clients
|
||||
|
|
@ -10,6 +11,7 @@
|
|||
|
||||
|
||||
- name: Configure borg backups system
|
||||
tags: server
|
||||
hosts: borg_clients_True:borg
|
||||
debugger: on_failed
|
||||
tasks:
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
- include_tasks: forgejo_docker.yaml
|
||||
- include_tasks: forgejo_docker.yaml
|
||||
tags:
|
||||
- forgejo
|
||||
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
- include_tasks: docker_newt.yaml
|
||||
tags:
|
||||
- newt
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
- import_tasks: nextcloud_docker_aio.yaml
|
||||
- import_tasks: nextcloud_docker_aio.yaml
|
||||
tags:
|
||||
- nextcloud
|
||||
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
- include_tasks: docker_nginx.yaml
|
||||
- include_tasks: docker_nginx.yaml
|
||||
tags:
|
||||
- nginx
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
- ansible.builtin.include_tasks:
|
||||
file: docker_pangolin.yaml
|
||||
- include_tasks: docker_pangolin.yaml
|
||||
tags:
|
||||
- pamgolin
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
vaultwarden_signup_allowed: true
|
||||
vaultwarden_image_tag: 1.37.2
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- include_tasks: vaultwarden_docker.yaml
|
||||
tags:
|
||||
- vaultwarden
|
||||
|
|
@ -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 }}"
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue