forked from davestephens/ansible-nas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin: Ansible-lint, recommended VSCode extensions, line-ending cleanup
- Loading branch information
1 parent
482e3fa
commit 6892ed5
Showing
11 changed files
with
126 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"haaaad.ansible", | ||
"ybaumes.highlight-trailing-white-spaces" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
- name: Create Emby Directories | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
with_items: | ||
- "{{ emby_config_directory }}" | ||
|
||
- name: emby Docker Container | ||
docker_container: | ||
name: emby | ||
image: emby/embyserver | ||
pull: true | ||
volumes: | ||
- "{{ emby_config_directory }}:/config:rw" | ||
- "{{ emby_movies_directory }}:/movies:rw" | ||
- "{{ emby_tv_directory }}:/tv:rw" | ||
ports: | ||
- "8096:8096" # HTTP port | ||
- "8920:8920" # HTTPS port | ||
env: | ||
TZ: "{{ ansible_nas_timezone }}" | ||
PUID: "{{ emby_user_id }}" | ||
PGID: "{{ emby_group_id }}" | ||
restart_policy: unless-stopped | ||
memory: 1g | ||
- name: Create Emby Directories | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
with_items: | ||
- "{{ emby_config_directory }}" | ||
|
||
- name: emby Docker Container | ||
docker_container: | ||
name: emby | ||
image: emby/embyserver | ||
pull: true | ||
volumes: | ||
- "{{ emby_config_directory }}:/config:rw" | ||
- "{{ emby_movies_directory }}:/movies:rw" | ||
- "{{ emby_tv_directory }}:/tv:rw" | ||
ports: | ||
- "8096:8096" # HTTP port | ||
- "8920:8920" # HTTPS port | ||
env: | ||
TZ: "{{ ansible_nas_timezone }}" | ||
PUID: "{{ emby_user_id }}" | ||
PGID: "{{ emby_group_id }}" | ||
restart_policy: unless-stopped | ||
memory: 1g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
--- | ||
- name: Create Gitea group account | ||
group: | ||
name: git | ||
gid: 1309 | ||
state: present | ||
|
||
- name: Create Gitea user account | ||
user: | ||
name: git | ||
uid: 1309 | ||
state: present | ||
system: yes | ||
update_password: on_create | ||
create_home: no | ||
group: git | ||
|
||
- name: Create Gitea Directories | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
owner: git | ||
group: git | ||
recurse: yes | ||
with_items: | ||
- "{{ gitea_data_directory }}/gitea" | ||
- "{{ gitea_data_directory }}/mysql" | ||
|
||
- name: Create MySQL container for Gitea | ||
docker_container: | ||
name: gitea-mysql | ||
image: mysql:5.7 | ||
pull: true | ||
volumes: | ||
- "{{ gitea_data_directory }}/mysql:/var/lib/mysql:rw" | ||
env: | ||
MYSQL_DATABASE: gitea | ||
MYSQL_USER: gitea | ||
MYSQL_PASSWORD: gitea | ||
MYSQL_ROOT_PASSWORD: gitea | ||
restart_policy: unless-stopped | ||
memory: 1g | ||
|
||
- name: Create Gitea container | ||
docker_container: | ||
name: gitea | ||
image: gitea/gitea:1.6 | ||
pull: true | ||
links: | ||
- gitea-mysql:db | ||
volumes: | ||
- "{{ gitea_data_directory }}/gitea:/data:rw" | ||
ports: | ||
- "3001:3000" | ||
- "222:22" | ||
env: | ||
DB_TYPE: mysql | ||
DB_HOST: db:3306 | ||
DB_NAME: gitea | ||
DB_USER: gitea | ||
DB_PASSWD: gitea | ||
RUN_MODE: prod | ||
SSH_DOMAIN: "{{ ansible_nas_hostname }}" | ||
SSH_PORT: 222 | ||
ROOT_URL: "http://{{ ansible_nas_hostname }}:3001/" | ||
USER_UID: 1309 | ||
USER_GID: 1309 | ||
restart_policy: unless-stopped | ||
memory: 1g | ||
--- | ||
- name: Create Gitea group account | ||
group: | ||
name: git | ||
gid: 1309 | ||
state: present | ||
|
||
- name: Create Gitea user account | ||
user: | ||
name: git | ||
uid: 1309 | ||
state: present | ||
system: yes | ||
update_password: on_create | ||
create_home: no | ||
group: git | ||
|
||
- name: Create Gitea Directories | ||
file: | ||
path: "{{ item }}" | ||
state: directory | ||
owner: git | ||
group: git | ||
recurse: yes | ||
with_items: | ||
- "{{ gitea_data_directory }}/gitea" | ||
- "{{ gitea_data_directory }}/mysql" | ||
|
||
- name: Create MySQL container for Gitea | ||
docker_container: | ||
name: gitea-mysql | ||
image: mysql:5.7 | ||
pull: true | ||
volumes: | ||
- "{{ gitea_data_directory }}/mysql:/var/lib/mysql:rw" | ||
env: | ||
MYSQL_DATABASE: gitea | ||
MYSQL_USER: gitea | ||
MYSQL_PASSWORD: gitea | ||
MYSQL_ROOT_PASSWORD: gitea | ||
restart_policy: unless-stopped | ||
memory: 1g | ||
|
||
- name: Create Gitea container | ||
docker_container: | ||
name: gitea | ||
image: gitea/gitea:1.6 | ||
pull: true | ||
links: | ||
- gitea-mysql:db | ||
volumes: | ||
- "{{ gitea_data_directory }}/gitea:/data:rw" | ||
ports: | ||
- "3001:3000" | ||
- "222:22" | ||
env: | ||
DB_TYPE: mysql | ||
DB_HOST: db:3306 | ||
DB_NAME: gitea | ||
DB_USER: gitea | ||
DB_PASSWD: gitea | ||
RUN_MODE: prod | ||
SSH_DOMAIN: "{{ ansible_nas_hostname }}" | ||
SSH_PORT: 222 | ||
ROOT_URL: "http://{{ ansible_nas_hostname }}:3001/" | ||
USER_UID: 1309 | ||
USER_GID: 1309 | ||
restart_policy: unless-stopped | ||
memory: 1g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters