<commit_before>---
- debug: msg='MASTER NODE SET TO {{ postgres_ha_cluster_master_host }}'
  run_once: true

- name: verify postgres_ha_cluster_master_host
  fail:
    msg: "CRITICAL: defined master host ({{ postgres_ha_cluster_master_host }}) is not in host list ({{ ansible_play_batch }})"
  when: postgres_ha_cluster_master_host not in ansible_play_batch

- name: identify the OS
  set_fact:
    os_version: 'centos{{ ansible_distribution_major_version }}'
  when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'<commit_msg>add default os_version<commit_after>---
- debug: msg='MASTER NODE SET TO {{ postgres_ha_cluster_master_host }}'
  run_once: true

- name: verify postgres_ha_cluster_master_host
  fail:
    msg: "CRITICAL: defined master host ({{ postgres_ha_cluster_master_host }}) is not in host list ({{ ansible_play_batch }})"
  when: postgres_ha_cluster_master_host not in ansible_play_batch

# Set default os_version.
# Without os_version set, the role will fail.
# This is a preparation for multi-OS.
- name: identify the OS (default)
  set_fact:
    os_version: 'centos7'
  when: ansible_distribution is not defined

- name: identify the OS (centos)
  set_fact:
    os_version: 'centos{{ ansible_distribution_major_version }}'
  when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
{'fraction_non_alphanumeric': 0.09368191721132897, 'fraction_numerical': 0.0007262164124909223, 'mean_word_length': 5.292237442922374, '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': '468880', 'n_tokens_mistral': 455, 'n_tokens_neox': 445, 'n_words': 125}