<commit_before>- include_vars: update-vars.yml

- name: Zip file for the EPFL plug-in
  run_once: true
  local_action:
    module: archive
    dest: "{{ epfl_plugin_zip_file }}"
    format: zip
    path: "{{ epfl_plugin_dir }}"
    exclude_path: "{{ epfl_ignore_files_pattern }}"

- name: Install EPFL plug-in
  unarchive:
    src: "{{ epfl_plugin_zip_file }}"
    dest: "{{ wp_plugins_dir }}"
  when: "wp_can.write_code"
  register: _epfl_plugin_zip_file


- name: Zip file for the EPFL 2018 theme
  run_once: true
  local_action:
    module: archive
    dest: "{{ epfl_theme2018_zip_file }}"
    format: zip
    path: "{{ epfl_theme2018_dir }}"
    exclude_path: "{{ epfl_ignore_files_pattern }}"

- name: Install EPFL 2018 theme
  unarchive:
    src: "{{ epfl_theme2018_zip_file }}"
    dest: "{{ wp_themes_dir }}"
  when: "wp_can.write_code"
  register: _epfl_plugin_zip_file

- name: deactivate EPFL plug-in
  command: "{{ wp_cli_command }} plugin deactivate"
  when: _epfl_plugin_zip_file.changed and play_unload_reload_plugins is match("yes")
  failed_when: false

- name: reactivate EPFL plug-in
  command: "{{ wp_cli_command }} plugin activate"
  when: _epfl_plugin_zip_file.changed and play_unload_reload_plugins is match("yes")<commit_msg>Don't install zips remotely if they did not change<commit_after>- include_vars: update-vars.yml

- name: Zip file for the EPFL plug-in
  run_once: true
  local_action:
    module: archive
    dest: "{{ epfl_plugin_zip_file }}"
    format: zip
    path: "{{ epfl_plugin_dir }}"
    exclude_path: "{{ epfl_ignore_files_pattern }}"
  register: _epfl_plugin_zip

- name: Install EPFL plug-in
  unarchive:
    src: "{{ epfl_plugin_zip_file }}"
    dest: "{{ wp_plugins_dir }}"
  when: "wp_can.write_code and _epfl_plugin_zip is changed"
  register: _epfl_plugin_zip_install


- name: Zip file for the EPFL 2018 theme
  run_once: true
  local_action:
    module: archive
    dest: "{{ epfl_theme2018_zip_file }}"
    format: zip
    path: "{{ epfl_theme2018_dir }}"
    exclude_path: "{{ epfl_ignore_files_pattern }}"
  register: _epfl_theme_zip

- name: Install EPFL 2018 theme
  unarchive:
    src: "{{ epfl_theme2018_zip_file }}"
    dest: "{{ wp_themes_dir }}"
  when: "wp_can.write_code and _epfl_theme_zip is changed"

- name: deactivate EPFL plug-in
  command: "{{ wp_cli_command }} plugin deactivate"
  when: _epfl_plugin_zip_install.changed and play_unload_reload_plugins is match("yes")
  failed_when: false

- name: reactivate EPFL plug-in
  command: "{{ wp_cli_command }} plugin activate"
  when: _epfl_plugin_zip_install.changed and play_unload_reload_plugins is match("yes")
{'fraction_non_alphanumeric': 0.10714285714285714, 'fraction_numerical': 0.015197568389057751, 'mean_word_length': 4.2554890219560875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3818824', 'n_tokens_mistral': 988, 'n_tokens_neox': 941, 'n_words': 219}