diff --git a/tools/ansible/deploy/after-update-code.yml b/tools/ansible/deploy/after-update-code.yml index 9f1f6791..a5f2f4a9 100644 --- a/tools/ansible/deploy/after-update-code.yml +++ b/tools/ansible/deploy/after-update-code.yml @@ -32,3 +32,4 @@ changed_when: "'There are no changes to import' not in config_import_result.stderr" - include: ../includes/build-theme-assets.yml +- include: ../includes/build-talk-slides.yml diff --git a/tools/ansible/includes/build-talk-slides.yml b/tools/ansible/includes/build-talk-slides.yml new file mode 100644 index 00000000..c99921c3 --- /dev/null +++ b/tools/ansible/includes/build-talk-slides.yml @@ -0,0 +1,6 @@ +--- +- name: Generate static slides for talks + shell: > + npm install; npx reveal-md slides.md --static --static-dirs=assets + chdir={{ ansistrano_release_path.stdout }}/slides/{{ item }} + with_items: '{{ slides_repo_names }}' diff --git a/tools/ansible/vars/provision_vars.yml b/tools/ansible/vars/provision_vars.yml index efc3635a..9b13a48d 100644 --- a/tools/ansible/vars/provision_vars.yml +++ b/tools/ansible/vars/provision_vars.yml @@ -152,7 +152,7 @@ nginx_vhosts: # Talks {% for name in slides_repo_names %} location /slides-{{ name }} { - alias /srv/slides-{{ name }}/_static/; + alias {{ project_root_path }}/{{ ansistrano_current_dir }}/slides/{{ name }}/_static/; } {% endfor %}