equal
deleted
inserted
replaced
179 when: remote_static_path != "" |
179 when: remote_static_path != "" |
180 |
180 |
181 # TODO : set dashboard name in setting |
181 # TODO : set dashboard name in setting |
182 - name: transfert static dist to remote |
182 - name: transfert static dist to remote |
183 copy: |
183 copy: |
184 src: "{{clientjs_dir}}/{{dashboard_name}}/build/" |
184 src: "{{clientjs_dir}}/packages/{{dashboard_name}}/build/" |
185 dest: "{{remote_static_path}}/" |
185 dest: "{{remote_static_path}}/" |
186 owner: "{{static_http_user}}" |
186 owner: "{{static_http_user}}" |
187 group: "{{static_http_group}}" |
187 group: "{{static_http_group}}" |
188 notify: |
188 notify: |
189 - restart static nginx |
189 - restart static nginx |
190 |
190 |
191 - name: create refresh nginx config |
191 - name: create refresh nginx config |
192 template: |
192 template: |
193 src: netrights.iri-research.org.j2 |
193 src: "{{static_nginx_use_ssl | ternary('nginx.static.ssl.conf.j2', 'nginx.static.conf.j2')}}" |
194 dest: "{{static_nginx_config | default('/etc/nginx/site-available/'+static_server_name, true)}}" |
194 dest: "{{static_nginx_config | default('/etc/nginx/site-available/'+static_server_name, true)}}" |
195 notify: |
195 notify: |
196 - restart static nginx |
196 - restart static nginx |
197 |
197 |
198 handlers: |
198 handlers: |