Proxy nginx + torrent client
This commit is contained in:
@@ -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'}}"
|
||||
@@ -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:
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
---
|
||||
# defaults file for docker_spin_up
|
||||
docker_homepath: "/{{ zfs_pool_name }}/{{ docker_name }}"
|
||||
|
||||
@@ -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 }}"
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
- screen
|
||||
- python3
|
||||
- python3-pip
|
||||
- mycli
|
||||
state: present
|
||||
|
||||
- name: Wireguard deb
|
||||
|
||||
Reference in New Issue
Block a user