Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 4bc9988

Browse files
committed
PreTasks: Renamed subtasks. [ansible]
pre tasks
1 parent 61c4022 commit 4bc9988

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

roles/pre_tasks/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks Role #
2+
# Title: Cloudbox: Pre-Tasks #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #
@@ -16,12 +16,12 @@
1616
import_tasks: "subtasks/clean_paths.yml"
1717
tags: always
1818

19-
- name: Set Cloudbox vars
20-
import_tasks: "subtasks/vars.yml"
19+
- name: Set Cloudbox Variables
20+
import_tasks: "subtasks/variables.yml"
2121
tags: always
2222

23-
- name: Set Cloudbox role vars
24-
import_tasks: "subtasks/role_vars.yml"
23+
- name: Set Cloudbox Role Variables
24+
import_tasks: "subtasks/role_variables.yml"
2525
tags: always
2626

2727
# Sub-Domain Tasks

roles/pre_tasks/tasks/subtasks/add_subdomain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks Role - Add Subdomain Task #
2+
# Title: Pre-Tasks: Add Subdomain Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #

roles/pre_tasks/tasks/subtasks/apt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Pre-Tasks Role - APT Task #
2+
# Title: Pre-Tasks: APT Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #

roles/pre_tasks/tasks/subtasks/clean_paths.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks - Clean Paths Task #
2+
# Title: Pre-Tasks: Clean Paths Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #

roles/pre_tasks/tasks/subtasks/remove_subdomain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks Role - Remove Subdomain Task #
2+
# Title: Pre-Tasks: - Remove Subdomain Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #

roles/pre_tasks/tasks/subtasks/role_vars.yml renamed to roles/pre_tasks/tasks/subtasks/role_variables.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks - Variables Task #
2+
# Title: Pre-Tasks: Role Variables Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #
@@ -8,15 +8,15 @@
88
# GNU General Public License v3.0 #
99
#########################################################################
1010
---
11-
- name: "Role Vars | Set 'use_nzbs'"
11+
- name: "Role Variables | Set 'use_nzbs'"
1212
set_fact:
1313
use_nzbs: "{{ true if ( (nzbs_downloads_path is defined) | default(false,true) ) else false }}"
1414

15-
- name: "Role Vars | Set 'use_torrents'"
15+
- name: "Role Variables | Set 'use_torrents'"
1616
set_fact:
1717
use_torrents: "{{ true if ( (torrents_downloads_path is defined) | default(false,true) ) else false }}"
1818

19-
- name: "Role Vars | Set 'use_remote'"
19+
- name: "Role Variables | Set 'use_remote'"
2020
set_fact:
2121
use_remote: "{{ true if not(
2222
(rclone is undefined)
@@ -33,6 +33,6 @@
3333
)
3434
else false }}"
3535

36-
- name: "Role Vars | Set 'use_nvidia'"
36+
- name: "Role Variables | Set 'use_nvidia'"
3737
set_fact:
3838
use_nvidia: "{{ true if ( gpu.nvidia | default(false) ) else false }}"

roles/pre_tasks/tasks/subtasks/user.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Pre-Tasks Role - User Task #
2+
# Title: Pre-Tasks: User Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #

roles/pre_tasks/tasks/subtasks/vars.yml renamed to roles/pre_tasks/tasks/subtasks/variables.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#########################################################################
2-
# Title: Cloudbox: Pre-Tasks - Variables Task #
2+
# Title: Pre-Tasks: Variables Task #
33
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #
@@ -9,11 +9,11 @@
99
#########################################################################
1010
---
1111
# Needed again for cloudbox_mod.
12-
- name: "Vars | Set 'continuous_integration' variable"
12+
- name: "Variables | Set 'continuous_integration' variable"
1313
set_fact:
1414
continuous_integration: "{{ continuous_integration | default(false,true) }}"
1515

16-
- name: "Vars | Set 'cloudflare_enabled' variable"
16+
- name: "Variables | Set 'cloudflare_enabled' variable"
1717
set_fact:
1818
cloudflare_enabled: "{{ true if not(
1919
(cloudflare_api_token is undefined)
@@ -24,11 +24,11 @@
2424
)
2525
else false }}"
2626

27-
- name: "Vars | Set 'localhost_ip' variable"
27+
- name: "Variables | Set 'localhost_ip' variable"
2828
set_fact:
2929
localhost_ip: "127.0.0.1"
3030

31-
- name: "Vars | Set 'plex_account_enabled' variable"
31+
- name: "Variables | Set 'plex_account_enabled' variable"
3232
set_fact:
3333
plex_account_enabled: "{{ true if not(
3434
(plex is undefined)
@@ -51,7 +51,7 @@
5151
)
5252
else false }}"
5353

54-
- name: "Vars | Set 'nzbs_downloads_path' variable"
54+
- name: "Variables | Set 'nzbs_downloads_path' variable"
5555
set_fact:
5656
nzbs_downloads_path:
5757
- "{{ downloads.nzbs }}:/downloads/nzbs"
@@ -69,7 +69,7 @@
6969
(downloads.nzbs | trim | length == 0)
7070
)
7171

72-
- name: "Vars | Set 'torrents_downloads_path' variable"
72+
- name: "Variables | Set 'torrents_downloads_path' variable"
7373
set_fact:
7474
torrents_downloads_path:
7575
- "{{ downloads.torrents }}:/downloads/torrents"
@@ -88,11 +88,11 @@
8888
)
8989

9090

91-
- name: Vars | Set `suitarr_default_version` variable
91+
- name: Variables | Set 'suitarr_default_version' variable
9292
set_fact:
9393
suitarr_default_version: "unstable"
9494

95-
- name: Vars | Check if 'suitarr.version' was specified
95+
- name: Variables | Check if 'suitarr.version' was specified
9696
set_fact:
9797
suitarr_version_is_specified: "{{ true if not (
9898
(suitarr is undefined)
@@ -109,7 +109,7 @@
109109
)
110110
else false }}"
111111

112-
- name: Vars | Validate and set proper 'suitarr' key variables
112+
- name: Variables | Validate and set proper 'suitarr' key variables
113113
set_fact:
114114
suitarr_tmp: { version: "{{ (suitarr.version | lower) if (
115115
(suitarr_version_is_specified)
@@ -120,7 +120,7 @@
120120
)
121121
else (suitarr_default_version) }}" }
122122

123-
- name: Vars | Merge changes back to 'suitarr' key
123+
- name: Variables | Merge changes back to 'suitarr' key
124124
set_fact:
125125
suitarr: "{{ (suitarr_tmp) if (
126126
(suitarr is undefined)
@@ -131,7 +131,7 @@
131131
)
132132
else ((suitarr) | combine(suitarr_tmp)) }}"
133133

134-
- name: "Vars | Set 'sma_enabled' role tag"
134+
- name: "Variables | Set 'sma_enabled' role tag"
135135
set_fact:
136136
sma_enabled: "{{ true if (
137137
(sickbeard_mp4_automator is defined)
@@ -140,13 +140,13 @@
140140
)
141141
else false }}"
142142

143-
- name: Vars | Fetch time zone
143+
- name: Variables | Fetch time zone
144144
uri:
145145
url: http://ip-api.com/line?fields=timezone
146146
return_content: yes
147147
register: timezone_response
148148
when: (system.timezone|lower == 'auto') or (not system.timezone)
149149

150-
- name: Vars | Set time zone variable
150+
- name: Variables | Set time zone variable
151151
set_fact:
152152
tz: "{{ (timezone_response.content | trim) if ((system.timezone|lower == 'auto') or (not system.timezone)) else (system.timezone) }}"

0 commit comments

Comments
 (0)