torrent working
This commit is contained in:
35
ansible/roles/torrent/tasks/main.yaml
Normal file
35
ansible/roles/torrent/tasks/main.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
|
||||
- name: Create downloads directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ torrent_downloads_dir }}"
|
||||
state: directory
|
||||
owner: "{{ torrent_user }}"
|
||||
group: "{{ torrent_user }}"
|
||||
mode: "0775"
|
||||
|
||||
- name: Create qbittorrent config directory
|
||||
ansible.builtin.file:
|
||||
path: /etc/qbittorrent
|
||||
state: directory
|
||||
owner: "{{ torrent_user }}"
|
||||
group: "{{ torrent_user }}"
|
||||
mode: "0775"
|
||||
|
||||
- name: Template out the wireguard config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/qbittorrent/wg0.conf
|
||||
src: wireguard.conf.j2
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
|
||||
- name: Modprobe the wireguard module
|
||||
community.general.modprobe:
|
||||
name: wireguard
|
||||
persistent: present
|
||||
state: present
|
||||
|
||||
- name: Branch to Docker role
|
||||
ansible.builtin.include_role:
|
||||
name: docker
|
Reference in New Issue
Block a user