45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
---
|
|
- name: Create Arr stack directories
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
loop:
|
|
- "{{ arr_dir }}"
|
|
- "{{ arr_config_root }}"
|
|
- "{{ arr_media_root }}"
|
|
- "{{ arr_downloads_root }}"
|
|
tags: [arr]
|
|
|
|
- name: Create Arr application config directories
|
|
ansible.builtin.file:
|
|
path: "{{ arr_config_root }}/{{ item.key }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
loop: "{{ arr_services | dict2items }}"
|
|
tags: [arr, config]
|
|
|
|
- name: Deploy Arr Compose project
|
|
ansible.builtin.include_role:
|
|
name: compose_project
|
|
vars:
|
|
compose_project_dir: "{{ arr_dir }}"
|
|
compose_project_directories:
|
|
- "{{ arr_dir }}"
|
|
- "{{ arr_config_root }}"
|
|
- "{{ arr_media_root }}"
|
|
- "{{ arr_downloads_root }}"
|
|
compose_project_env_template_src: "{{ playbook_dir }}/../roles/arr/templates/env.j2"
|
|
compose_project_env_mode: "0644"
|
|
compose_project_compose_template_src: "{{ playbook_dir }}/../roles/arr/templates/compose.yaml.j2"
|
|
compose_project_override_template_src: "{{ playbook_dir }}/../roles/arr/templates/compose.override.yaml.j2"
|
|
compose_project_create_proxy_network: "{{ arr_routing_mode == 'traefik' }}"
|
|
compose_project_proxy_network: "{{ arr_traefik_network }}"
|
|
compose_project_firewall_ports: "{{ arr_tcp_ports }}"
|
|
compose_project_firewall_enabled: "{{ arr_routing_mode in ['host', 'traefik_file'] }}"
|
|
tags: [arr]
|