deploy/deploy.yml
changeset 2 f72ffe8b30b1
parent 1 66f388fa2130
child 14 521d1a8c7150
equal deleted inserted replaced
1:66f388fa2130 2:f72ffe8b30b1
   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: