Skip to content

Commit

Permalink
autoscan: move get_info task into settings tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Nov 30, 2024
1 parent 3f63489 commit c72b37c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions roles/autoscan/tasks/main2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
# GNU General Public License v3.0 #
#########################################################################
---
- name: Get Instance Info
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/instances/get_info.yml"
vars:
get_info_list:
- plex

- name: Add DNS record
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/dns/tasker.yml"
vars:
Expand Down
6 changes: 6 additions & 0 deletions roles/autoscan/tasks/subtasks/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
- name: Settings | New `{{ autoscan_paths_config_location | basename }}` tasks
when: (not autoscan_config.stat.exists)
block:
- name: Settings | Get Instance Info
ansible.builtin.include_tasks: "{{ resources_tasks_path }}/instances/get_info.yml"
vars:
get_info_list:
- plex

- name: Settings | Import default `{{ autoscan_paths_config_location | basename }}`
ansible.builtin.template:
src: config.yml.j2
Expand Down

0 comments on commit c72b37c

Please sign in to comment.