diff --git a/roles/sys-front-inj-design/tasks/main.yml b/roles/sys-front-inj-design/tasks/main.yml index 58ad401980..eb52737ae0 100644 --- a/roles/sys-front-inj-design/tasks/main.yml +++ b/roles/sys-front-inj-design/tasks/main.yml @@ -18,13 +18,15 @@ - name: "๐Ÿš€ Deploy per-app '{{ app_style_src }}' to '{{ css_app_dst }}'" when: app_style_present | bool - copy: + stack_host_copy: content: "{{ app_style_css }}" dest: "{{ css_app_dst }}" mode: "0644" - name: "๐Ÿงน Remove the per-app stylesheet '{{ css_app_dst }}' a role no longer ships" - when: not (app_style_present | bool) + when: + - not (app_style_present | bool) + - IS_STACK_HOST | bool ansible.builtin.file: path: "{{ css_app_dst }}" state: absent