Linting.
This commit is contained in:
parent
ccb83be886
commit
e49c4f80f3
13
.ansible-lint
Normal file
13
.ansible-lint
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
skip_list:
|
||||||
|
- 'yaml'
|
||||||
|
- 'risky-shell-pipe'
|
||||||
|
- 'role-name'
|
||||||
|
- 'no-handler'
|
||||||
|
|
||||||
|
kinds:
|
||||||
|
- meta: "**/meta/main.yml"
|
||||||
|
- tasks: "**/tasks/*.yml"
|
||||||
|
- vars: "**/vars/*.yml"
|
||||||
|
|
||||||
|
exclude_paths:
|
||||||
|
- "**/requirements.yml"
|
11
README.md
11
README.md
@ -32,6 +32,7 @@ If you need to install the containers with a specific user/group ID, then define
|
|||||||
arrs_uid:
|
arrs_uid:
|
||||||
arrs_gid:
|
arrs_gid:
|
||||||
```
|
```
|
||||||
|
|
||||||
The role allows oyu to specify which components will be installed:
|
The role allows oyu to specify which components will be installed:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -71,6 +72,7 @@ You can specify the image version and the port exposed:
|
|||||||
radarr_image_version: 'latest'
|
radarr_image_version: 'latest'
|
||||||
radarr_host_port: 7878
|
radarr_host_port: 7878
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also overwrite the location where radarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
You can also overwrite the location where radarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -96,6 +98,7 @@ You can specify the image version and the port exposed:
|
|||||||
sonarr_image_version: 'latest'
|
sonarr_image_version: 'latest'
|
||||||
sonarr_host_port: 8989
|
sonarr_host_port: 8989
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also overwrite the location where sonarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
You can also overwrite the location where sonarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -113,7 +116,7 @@ sonarr_series_volume: '/mnt/videos/Series'
|
|||||||
- Depending on your settings, it will also rename your current series
|
- Depending on your settings, it will also rename your current series
|
||||||
- You need write access to that directory, so Sonarr can actually copy the files
|
- You need write access to that directory, so Sonarr can actually copy the files
|
||||||
|
|
||||||
# Lidarr
|
### Lidarr
|
||||||
|
|
||||||
You can specify the image version and the port exposed:
|
You can specify the image version and the port exposed:
|
||||||
|
|
||||||
@ -121,11 +124,13 @@ You can specify the image version and the port exposed:
|
|||||||
lidarr_image_version: 'latest'
|
lidarr_image_version: 'latest'
|
||||||
lidarr_host_port: 8686
|
lidarr_host_port: 8686
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also overwrite the location where lidarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
You can also overwrite the location where lidarr's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
lidarr_config_volume: '{{ arrs_configuration_volume }}/lidarr'
|
lidarr_config_volume: '{{ arrs_configuration_volume }}/lidarr'
|
||||||
```
|
```
|
||||||
|
|
||||||
Lidarr needs a place to copy the downloaded music:
|
Lidarr needs a place to copy the downloaded music:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -143,7 +148,8 @@ lidarr_music_volumes:
|
|||||||
|
|
||||||
The `path` is the actual directory where the collection is located and the `alias` is the internal mapping name in Docker.
|
The `path` is the actual directory where the collection is located and the `alias` is the internal mapping name in Docker.
|
||||||
|
|
||||||
# Jakett
|
### Jakett
|
||||||
|
|
||||||
You can specify the image version, the port exposed and to autoupdate:
|
You can specify the image version, the port exposed and to autoupdate:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
@ -151,6 +157,7 @@ jackett_image_version: 'latest'
|
|||||||
jackett_auto_update: true
|
jackett_auto_update: true
|
||||||
jackett_host_port: 9117
|
jackett_host_port: 9117
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also overwrite the location where jackett's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
You can also overwrite the location where jackett's configuration is stored (e.g. if you already have it installed and you want to use the Ansible role):
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
@ -8,28 +8,30 @@
|
|||||||
register: docker_sock_stat
|
register: docker_sock_stat
|
||||||
|
|
||||||
- name: Create docker.sock
|
- name: Create docker.sock
|
||||||
raw: touch /var/run/docker.sock
|
ansible.builtin.raw: touch /var/run/docker.sock
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: not docker_sock_stat.stat.exists
|
when: not docker_sock_stat.stat.exists
|
||||||
|
|
||||||
- name: Move docker.sock from tmp
|
- name: Move docker.sock from tmp
|
||||||
raw: mount --move /tmp/docker_mounted.sock /var/run/docker.sock
|
ansible.builtin.raw: mount --move /tmp/docker_mounted.sock /var/run/docker.sock
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: not docker_sock_stat.stat.exists
|
when: not docker_sock_stat.stat.exists
|
||||||
|
|
||||||
- name: Update apt cache.
|
- name: Update apt cache.
|
||||||
apt: update_cache=yes cache_valid_time=600
|
ansible.builtin.apt: update_cache=yes cache_valid_time=600
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Install python requests
|
- name: Install python requests
|
||||||
pip:
|
ansible.builtin.pip:
|
||||||
name:
|
name:
|
||||||
- requests
|
- requests
|
||||||
- docker
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
|
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
vars:
|
vars:
|
||||||
docker_service_manage: false
|
docker_service_manage: false
|
||||||
include_role:
|
ansible.builtin.include_role:
|
||||||
name: geerlingguy.docker
|
name: geerlingguy.docker
|
||||||
|
Loading…
Reference in New Issue
Block a user