<commit_before>---
- name: Set rpm version to configure if openshift_pkg_version specified
  set_fact:
    # Expects a leading "-" in inventory, strip it off here, and remove trailing release,
    openshift_version: "{{ openshift_pkg_version[1:].split('-')[0] }}"
  when: openshift_pkg_version is defined and openshift_version is not defined

# if {{ openshift.common.service_type}}-excluder is enabled,
# the repoquery for {{ openshift.common.service_type}} will not work.
# Thus, create a temporary yum,conf file where exclude= is set to an empty list
- name: Create temporary yum.conf file
  command: mktemp -d /tmp/yum.conf.XXXXXX
  register: yum_conf_temp_file_result

- set_fact:
    yum_conf_temp_file: "{{yum_conf_temp_file_result.stdout}}/yum.conf"

- name: Copy yum.conf into the temporary file
  copy:
    src: /etc/yum.conf
    dest: "{{ yum_conf_temp_file }}"
<commit_msg>Correct copy task to use remote source<commit_after>---
- name: Set rpm version to configure if openshift_pkg_version specified
  set_fact:
    # Expects a leading "-" in inventory, strip it off here, and remove trailing release,
    openshift_version: "{{ openshift_pkg_version[1:].split('-')[0] }}"
  when: openshift_pkg_version is defined and openshift_version is not defined

# if {{ openshift.common.service_type}}-excluder is enabled,
# the repoquery for {{ openshift.common.service_type}} will not work.
# Thus, create a temporary yum,conf file where exclude= is set to an empty list
- name: Create temporary yum.conf file
  command: mktemp -d /tmp/yum.conf.XXXXXX
  register: yum_conf_temp_file_result

- set_fact:
    yum_conf_temp_file: "{{yum_conf_temp_file_result.stdout}}/yum.conf"

- name: Copy yum.conf into the temporary file
  copy:
    src: /etc/yum.conf
    dest: "{{ yum_conf_temp_file }}"
    remote_src: True

{'fraction_non_alphanumeric': 0.10297356828193832, 'fraction_numerical': 0.0022026431718061676, 'mean_word_length': 4.359882005899705, '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': '1363936', 'n_tokens_mistral': 619, 'n_tokens_neox': 593, 'n_words': 180}