36 lines
799 B
YAML
36 lines
799 B
YAML
|
---
|
||
|
|
||
|
- 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
|