Skip to content

Commit

Permalink
refine logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli committed Aug 4, 2023
1 parent b1406d1 commit 1975185
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@

- name: Include Copy static files
ansible.builtin.include_tasks: setup_static_dirs.yml
loop: "{{ galaxy_themes_subdomains if galaxy_themes_subdomains|length else [] }}"
# fail only if enabled but dictionary is empty
loop: "{{ galaxy_themes_subdomains if galaxy_themes_subdomains|length or \
galaxy_manage_static else [] }}"
loop_control:
loop_var: subdomain
when: galaxy_manage_static
Expand All @@ -172,7 +174,9 @@

- name: Include Copy themes files
ansible.builtin.include_tasks: themes.yml
loop: "{{ galaxy_themes_subdomains }}"
# fail only if enabled but dictionary is empty
loop: "{{ galaxy_themes_subdomains if galaxy_themes_subdomains|length or \
galaxy_manage_themes else [] }}"
loop_control:
loop_var: subdomain
when: galaxy_manage_themes
Expand Down

0 comments on commit 1975185

Please sign in to comment.