<commit_before>---
- name: fail on unsupported system
  fail:
    msg: "System not supported {{ ansible_system }}"
  when: ansible_system not in ['Linux']

- name: fail on unsupported architecture
  fail:
    msg: "Architecture not supported {{ ansible_architecture }}"
  when: ansible_architecture not in ['x86_64', 'ppc64le', 'armv7l', 'aarch64']

- name: fail on unsupported distribution
  fail:
    msg: "Distribution not supported {{ ansible_os_family }}"
  when: ansible_os_family not in ['Debian', 'RedHat', 'ClearLinux', 'Suse']

- name: red hat based systems tasks
  when:
    - ceph_repository == 'rhcs'
    - ansible_distribution == 'Red Hat Enterprise Linux'
  block:
    - name: fail on unsupported distribution for red hat ceph storage
      fail:
        msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 7.3"
      when: ansible_distribution_version | version_compare('7.3', '<')

    - name: subscription manager related tasks
      when: ceph_repository_type == 'cdn'
      block:
        - name: determine if node is registered with subscription-manager
          command: subscription-manager identity
          register: subscription
          changed_when: false
          failed_when: false
          check_mode: no

        - name: fail on unregistered red hat rhcs linux
          fail:
            msg: "You must register your machine with subscription-manager"
          when: subscription.rc != '0'

- name: fail on unsupported distribution for ubuntu cloud archive
  fail:
    msg: "Distribution not supported by Ubuntu Cloud Archive: {{ ansible_distribution }}"
  when:
    - ceph_repository == 'uca'
    - ansible_distribution != 'Ubuntu'

- name: fail on unsupported openSUSE distribution
  fail:
    msg: "Distribution not supported: {{ ansible_distribution }}"
  when:
    - ansible_distribution == 'openSUSE Leap'
    - ansible_distribution_version is version_compare('42.3', '<')<commit_msg>only support openSUSE Leap 15.x, fail on 42.x<commit_after>---
- name: fail on unsupported system
  fail:
    msg: "System not supported {{ ansible_system }}"
  when: ansible_system not in ['Linux']

- name: fail on unsupported architecture
  fail:
    msg: "Architecture not supported {{ ansible_architecture }}"
  when: ansible_architecture not in ['x86_64', 'ppc64le', 'armv7l', 'aarch64']

- name: fail on unsupported distribution
  fail:
    msg: "Distribution not supported {{ ansible_os_family }}"
  when: ansible_os_family not in ['Debian', 'RedHat', 'ClearLinux', 'Suse']

- name: red hat based systems tasks
  when:
    - ceph_repository == 'rhcs'
    - ansible_distribution == 'Red Hat Enterprise Linux'
  block:
    - name: fail on unsupported distribution for red hat ceph storage
      fail:
        msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 7.3"
      when: ansible_distribution_version | version_compare('7.3', '<')

    - name: subscription manager related tasks
      when: ceph_repository_type == 'cdn'
      block:
        - name: determine if node is registered with subscription-manager
          command: subscription-manager identity
          register: subscription
          changed_when: false
          failed_when: false
          check_mode: no

        - name: fail on unregistered red hat rhcs linux
          fail:
            msg: "You must register your machine with subscription-manager"
          when: subscription.rc != '0'

- name: fail on unsupported distribution for ubuntu cloud archive
  fail:
    msg: "Distribution not supported by Ubuntu Cloud Archive: {{ ansible_distribution }}"
  when:
    - ceph_repository == 'uca'
    - ansible_distribution != 'Ubuntu'

- name: "fail on unsupported openSUSE distribution (only 15.x supported)"
  fail:
    msg: "Distribution not supported: {{ ansible_distribution }}"
  when:
    - ansible_distribution == 'openSUSE Leap'
    - ansible_distribution_major_version != '15'
{'fraction_non_alphanumeric': 0.09415584415584416, 'fraction_numerical': 0.00974025974025974, 'mean_word_length': 3.251592356687898, 'pattern_counts': {'":': 0, '<': 6, '<?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': '2754972', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1098, 'n_words': 385}