Skip to content

Commit

Permalink
resources: minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Sep 17, 2023
1 parent 6bb18f0 commit d0314da
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions resources/tasks/instances/get_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,39 @@
vars:
sonarr_name: "{{ item }}"
with_items: "{{ sonarr_instances }}"
when: "'sonarr' in get_info_list"
when: ('sonarr' in get_info_list)

- name: Resources | Tasks | Instances | Get Info | Run Radarr Tasks
ansible.builtin.include_tasks: radarr.yml
vars:
radarr_name: "{{ item }}"
with_items: "{{ radarr_instances }}"
when: "'radarr' in get_info_list"
when: ('radarr' in get_info_list)

- name: Resources | Tasks | Instances | Get Info | Run Lidarr Tasks
ansible.builtin.include_tasks: lidarr.yml
vars:
lidarr_name: "{{ item }}"
with_items: "{{ lidarr_instances }}"
when: "'lidarr' in get_info_list"
when: ('lidarr' in get_info_list)

- name: Resources | Tasks | Instances | Get Info | Run Readarr Tasks
ansible.builtin.include_tasks: readarr.yml
vars:
readarr_name: "{{ item }}"
with_items: "{{ readarr_instances }}"
when: "'readarr' in get_info_list"
when: ('readarr' in get_info_list)

- name: Resources | Tasks | Instances | Get Info | Run Plex Tasks
ansible.builtin.include_tasks: plex.yml
vars:
plex_name: "{{ item }}"
with_items: "{{ plex_instances }}"
when: "'plex' in get_info_list"
when: ('plex' in get_info_list)

- name: Resources | Tasks | Instances | Get Info | Run Overseerr Tasks
ansible.builtin.include_tasks: overseerr.yml
vars:
overseerr_name: "{{ item }}"
with_items: "{{ overseerr_instances }}"
when: "'overseerr' in get_info_list"
when: ('overseerr' in get_info_list)
2 changes: 1 addition & 1 deletion resources/tasks/instances/lidarr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
register: lidarr_paths_config_location_stat

- name: Resources | Tasks | Instances | Get Info | Lidarr API Key tasks
when: (lidarr_paths_config_location_stat.stat.exists)
when: lidarr_paths_config_location_stat.stat.exists
block:
- name: Resources | Tasks | Instances | Get Info | Fetch Lidarr API Key
community.general.xml:
Expand Down
2 changes: 1 addition & 1 deletion resources/tasks/instances/radarr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
register: radarr_paths_config_location_stat

- name: Resources | Tasks | Instances | Get Info | Radarr API Key tasks
when: (radarr_paths_config_location_stat.stat.exists)
when: radarr_paths_config_location_stat.stat.exists
block:
- name: Resources | Tasks | Instances | Get Info | Fetch Radarr API Key
community.general.xml:
Expand Down
2 changes: 1 addition & 1 deletion resources/tasks/instances/readarr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
register: readarr_paths_config_location_stat

- name: Resources | Tasks | Instances | Get Info | Readarr API Key tasks
when: (readarr_paths_config_location_stat.stat.exists)
when: readarr_paths_config_location_stat.stat.exists
block:
- name: Resources | Tasks | Instances | Get Info | Fetch Readarr API Key
community.general.xml:
Expand Down
2 changes: 1 addition & 1 deletion resources/tasks/instances/sonarr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
register: sonarr_paths_config_location_stat

- name: Resources | Tasks | Instances | Get Info | Sonarr API Key tasks
when: (sonarr_paths_config_location_stat.stat.exists)
when: sonarr_paths_config_location_stat.stat.exists
block:
- name: Resources | Tasks | Instances | Get Info | Fetch Sonarr API Key
community.general.xml:
Expand Down
2 changes: 1 addition & 1 deletion roles/system/tasks/subtasks/timezone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
ansible.builtin.shell: "timedatectl set-timezone {{ timezone }}; timedatectl"
register: timedatectl_utc
changed_when: "(timedatectl_utc.stdout is defined) and (timezone_string in timedatectl_utc.stdout)"
when: "(timedatectl.stdout is defined) and (timezone_string not in timedatectl.stdout)"
when: (timedatectl.stdout is defined) and (timezone_string not in timedatectl.stdout)

- name: Set hardware clock to use or not use local RTC
ansible.builtin.shell: "timedatectl set-local-rtc {% if timezone_use_local_rtc %}1{% else %}0{% endif %} && timedatectl || true"
Expand Down

0 comments on commit d0314da

Please sign in to comment.