diff options
Diffstat (limited to 'roles/transmission')
| -rw-r--r-- | roles/transmission/defaults/main.yaml | 17 | ||||
| -rw-r--r-- | roles/transmission/handlers/main.yaml | 2 | ||||
| -rw-r--r-- | roles/transmission/tasks/main.yaml | 32 |
3 files changed, 51 insertions, 0 deletions
diff --git a/roles/transmission/defaults/main.yaml b/roles/transmission/defaults/main.yaml new file mode 100644 index 0000000..cd11c66 --- /dev/null +++ b/roles/transmission/defaults/main.yaml @@ -0,0 +1,17 @@ +# Default Values +--- + +nextcloud_uid: "1000" +nextcloud_gid: "1000" +nextcloud_tz: 'America/Toronto' +nextcloud_data_root: '' +nextcloud_host_port: '' + +nextcloud_docker_network_name: 'nextcloud_network' + +nextcloud_postgres_db: 'nextcloud_db' +nextcloud_postgres_user: 'nextcloud' +nextcloud_postgres_password: '' + +nextcloud_container_name: 'nextcloud' +nextcloud_dashboard_url: 'https://{{ nextcloud_domain }}' diff --git a/roles/transmission/handlers/main.yaml b/roles/transmission/handlers/main.yaml new file mode 100644 index 0000000..cd21505 --- /dev/null +++ b/roles/transmission/handlers/main.yaml @@ -0,0 +1,2 @@ +--- + diff --git a/roles/transmission/tasks/main.yaml b/roles/transmission/tasks/main.yaml new file mode 100644 index 0000000..91d3971 --- /dev/null +++ b/roles/transmission/tasks/main.yaml @@ -0,0 +1,32 @@ +--- + +- name: 'Ensure transmission root dir exists' + file: + path: '{{ transmission_root_dir }}' + state: 'directory' + mode: '755' + +- name: 'Install transmission' + community.docker.docker_container: + name: 'transmission' + image: 'lscr.io/linuxserver/transmission:latest' + pull: true + state: 'started' + recreate: true + env: + "PUID": '1000' + "PGID": '1000' + "TZ": 'America/Toronto' + USER: '{{ transmission_user }}' + PASS: '{{ transmission_password }}' + # WHITELIST: '127.0.0.1,192.168.*.*' + HOST_WHITELIST: 'kdvpn.crabdance.com' + volumes: + - '{{ transmission_root_dir }}/data:/config' + - '{{ transmission_root_dir }}/downloads:/downloads' + - '{{ transmission_root_dir }}/watch:/watch' + ports: + - '{{ transmission_host_port }}:9091' + - 51413:51413 + - 51413:51413/udp + restart_policy: 'unless-stopped' |
