---

- import_tasks: ../includes/webapps_set_install_mode.yml
  vars:
    - root_dir: "{{ diagrams_root_dir }}"
    - version: "{{ diagrams_version }}"
  tags: diagrams

- block:
    - set_fact: diagrams_install_mode={{ (install_mode == 'upgrade' and not diagrams_manage_upgrade) | ternary('none',install_mode) }}
    - set_fact: diagrams_current_version={{ current_version | default('') }}
  tags: diagrams
