<commit_before>---
- name: Remove and create logs dir
  file: path={{ logs_dir | default(ansible_env.HOME) }}/logs/ state={{ item }}
  with_items:
    - absent
    - directory

- name: Load octario configuration
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../octario.cfg"
    - "{{ inventory_dir }}/octario.cfg"
    - "/etc/octario.cfg"

- name: Load component common configuration
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../components_config/common/{{ component.name }}.cfg"
    - "{{ inventory_dir }}/components_config/common/{{ component.name }}.cfg"

- name: Load component configuration by specific relaease
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../components_config/{{ component.version | default(rhos_default_version) }}/{{ component.name }}/component.cfg"
    - "{{ inventory_dir }}/components_config/{{ component.version | default(rhos_default_version) }}/{{ component.name }}/component.cfg"
    - "{{ component.path | default(inventory_dir + '/' + component.name) }}/{{ component.config_file_name | default(config_file_name) }}"
    - "{{ playbook_dir }}/../component.cfg"
    - "{{ inventory_dir }}/component.cfg"
    - "/etc/component.cfg"

- name: Setup component configuration based on operating system
  set_fact:
    component_config="{{ test_config.virt[item] | default(omit) }}"
  with_items:
    - "default"
    - "{{ ansible_os_family }}-{{ ansible_distribution_version | int }}"
    - "{{ ansible_os_family }}-{{ ansible_distribution_version }}"

- name: Copy component to remote host
  synchronize:
    src="{{ item }}"
    dest="{{ ansible_env.HOME }}"
  with_first_found:
    - "{{ component.path | default(omit) }}"
    - "{{ inventory_dir }}/{{ component.name }}"<commit_msg>Added 'jenkins-config' compatibility<commit_after>---
- name: Remove and create logs dir
  file: path={{ logs_dir | default(ansible_env.HOME) }}/logs/ state={{ item }}
  with_items:
    - absent
    - directory

- name: Load octario configuration
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../octario.cfg"
    - "{{ inventory_dir }}/octario.cfg"
    - "/etc/octario.cfg"

- name: Load component common configuration
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../components_config/common/{{ component.name }}.cfg"
    - "{{ inventory_dir }}/components_config/common/{{ component.name }}.cfg"

- name: Load component configuration by specific relaease
  include_vars: "{{ item }}"
  with_first_found:
    - "{{ playbook_dir }}/../components_config/{{ component.version | default(rhos_default_version) }}/{{ component.name }}/component.cfg"
    - "{{ inventory_dir }}/components_config/{{ component.version | default(rhos_default_version) }}/{{ component.name }}/component.cfg"
    - "{{ component.path | default(inventory_dir + '/' + component.name) }}/{{ component.config_file_name | default(config_file_name) }}"
    - "{{ playbook_dir }}/../component.cfg"
    - "{{ inventory_dir }}/component.cfg"
    - "/etc/component.cfg"
    - "{{ component.path | default(inventory_dir + '/' + component.name) }}/jenkins-config.yml"
    - "{{ playbook_dir }}/../jenkins-config.yml"
    - "{{ inventory_dir }}/jenkins-config.yml"
    - "/etc/jenkins-config.yml"

- name: Setup component configuration based on operating system
  set_fact:
    component_config="{{ test_config.virt[item] | default(omit) }}"
  with_items:
    - "default"
    - "{{ ansible_os_family }}-{{ ansible_distribution_version | int }}"
    - "{{ ansible_os_family }}-{{ ansible_distribution_version }}"

- name: Copy component to remote host
  synchronize:
    src="{{ item }}"
    dest="{{ ansible_env.HOME }}"
  with_first_found:
    - "{{ component.path | default(omit) }}"
    - "{{ inventory_dir }}/{{ component.name }}"
{'fraction_non_alphanumeric': 0.17665369649805449, 'fraction_numerical': 0.0, 'mean_word_length': 3.6290516206482595, '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': '1870708', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1246, 'n_words': 235}