<commit_before>---
# tasks file for consul-template

- name: Write install script
  template:
    src=install.j2
    dest={{consul_template_install_script}}
    mode=0755
  tags:
    - consul-template

- name: Check consul-template version
  shell: consul-template --version 2>&1 | grep {{consul_template_ver}}
  failed_when: false
  changed_when: false
  register: consul_template_ver_matches
  tags:
    - consul-template

- name: Install consul-template
  shell: "{{consul_template_install_script}}"
  when: consul_template_ver_matches.rc != 0
  tags:
    - consul-template

- name: Verify binary
  stat:
    path: "{{consul_template_bin_path}}//{{consul_template_bin_name}}"
  register: consul_template_verify_binary

- name: Fail if binary is not present
  fail:
    msg: consul-template binary is not present
  when: not consul_template_verify_binary.stat.exists

- name: Make templates dir
  file:
    path={{consul_template_templates_dir}}
    state=directory
  tags:
    - consul-template<commit_msg>Add tag to all tasks<commit_after>---
# tasks file for consul-template

- name: Write install script
  template:
    src=install.j2
    dest={{consul_template_install_script}}
    mode=0755
  tags:
    - consul-template

- name: Check consul-template version
  shell: consul-template --version 2>&1 | grep {{consul_template_ver}}
  failed_when: false
  changed_when: false
  register: consul_template_ver_matches
  tags:
    - consul-template

- name: Install consul-template
  shell: "{{consul_template_install_script}}"
  when: consul_template_ver_matches.rc != 0
  tags:
    - consul-template

- name: Verify binary
  stat:
    path: "{{consul_template_bin_path}}//{{consul_template_bin_name}}"
  register: consul_template_verify_binary
  tags:
    - consul-template

- name: Fail if binary is not present
  fail:
    msg: consul-template binary is not present
  when: not consul_template_verify_binary.stat.exists
  tags:
    - consul-template

- name: Make templates dir
  file:
    path={{consul_template_templates_dir}}
    state=directory
  tags:
    - consul-template
{'fraction_non_alphanumeric': 0.09496402877697842, 'fraction_numerical': 0.007673860911270983, 'mean_word_length': 3.8624708624708624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5725382', 'n_tokens_mistral': 691, 'n_tokens_neox': 688, 'n_words': 161}