Optimized variable conditions for ansible update 2.18 -> 2.20

This commit is contained in:
2025-12-04 12:24:01 +01:00
parent 73ec220847
commit d0efc77b6c
5 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
app_style_present: "{{ _app_style_src | length > 0 }}"
- name: "Deploy per-app '{{ app_style_src }}' to '{{ css_app_dst }}'"
when: app_style_present
when: app_style_present | bool
copy:
content: "{{ lookup('template', app_style_src) }}"
dest: "{{ css_app_dst }}"