Proxy nginx + torrent client

This commit is contained in:
git
2024-02-22 15:07:50 +01:00
parent 77dffb383d
commit b46cd74c72
7 changed files with 120 additions and 32 deletions

View File

@@ -2,5 +2,7 @@
# defaults file for create_user
primary_group: "{{ user }}"
secondary_groups: ''
password: ''
shell: "/bin/bash"
home: "/home/{{ user }}"
create_home: "{{ 'false' if (home == '/nonexistent') else 'true'}}"

View File

@@ -3,6 +3,7 @@
- name: Adding group
ansible.builtin.group:
name: "{{ primary_group }}"
gid: "{{ gid }}"
state: present
- name: Adding user
@@ -14,6 +15,7 @@
groups: "{{ secondary_groups }}"
home: "{{ home }}"
password: "{{ password }}"
create_home: "{{ create_home }}"
- name: Dowload ssh key
ansible.builtin.uri:

View File

@@ -1,2 +1,3 @@
---
# defaults file for docker_spin_up
docker_homepath: "/{{ zfs_pool_name }}/{{ docker_name }}"

View File

@@ -8,6 +8,10 @@
# group: root
# mode: '0644'
- name: Spin up "{{ docker_name }}"
- name: Create a network
community.docker.docker_network:
name: http
- name: Spin up {{ docker_compose_file }}
ansible.builtin.include_tasks:
"{{ docker_compose_file }}"

View File

@@ -15,10 +15,10 @@
# - /path/to/data:/config
- "{{ docker_homepath }}/downloads:/downloads"
- "{{ docker_homepath }}/watch:/watch"
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
#ports:
# - 9091:9091
# - 51413:51413
# - 51413:51413/udp
restart_policy: unless-stopped
#networks:
# - name: global
networks:
- name: http

View File

@@ -20,6 +20,7 @@
- screen
- python3
- python3-pip
- mycli
state: present
- name: Wireguard deb