<commit_before># vim: set ft=ansible:
---
- hosts: localhost
  connection: local
  sudo: no
  gather_facts: no
  vars_files:
  - ../vars.yml
  vars:
    cluster_hosts: "{{ groups['tag_env_' ~ cluster_id] }}"
  tasks:
  - fail:
      msg: required values not set
    when: rhsm_user is not defined or rhsm_pass is not defined or cluster_id is not defined and not (skip_subscription_managment | bool)

  - add_host:
      name: "{{ item }}"
      ansible_ssh_user: openshift
      ansible_sudo: yes
      groups: oo_hosts_to_register
    with_items: cluster_hosts

- name: Post register host(s)
  hosts: oo_hosts_to_register
  tasks:
  - name: Enable rhui extras channel
    command: yum-config-manager --enable rhui-REGION-rhel-server-extras
    when: not (skip_subscription_management | bool)

  - name: Disable all known rhsm repos
    command: subscription-manager repos --disable='*'
    when: not (skip_subscription_management | bool)

  - name: Subscribe only to the ose repo
    command: subscription-manager repos --enable=rhel-7-server-ose-3.1-rpms
    when: not (skip_subscription_management | bool)

  - name: Update current package set<commit_msg>switched post registration to serial for improved performance<commit_after># vim: set ft=ansible:
---
- hosts: localhost
  connection: local
  sudo: no
  gather_facts: no
  vars_files:
  - ../vars.yml
  vars:
    cluster_hosts: "{{ groups['tag_env_' ~ cluster_id] }}"
  tasks:
  - fail:
      msg: required values not set
    when: rhsm_user is not defined or rhsm_pass is not defined or cluster_id is not defined and not (skip_subscription_managment | bool)

  - add_host:
      name: "{{ item }}"
      ansible_ssh_user: openshift
      ansible_sudo: yes
      groups: oo_hosts_to_register
    with_items: cluster_hosts

- name: Post register host(s)
  hosts: oo_hosts_to_register
  serial: 1
  tasks:
  - name: Enable rhui extras channel
    command: yum-config-manager --enable rhui-REGION-rhel-server-extras
    when: not (skip_subscription_management | bool)

  - name: Disable all known rhsm repos
    command: subscription-manager repos --disable='*'
    when: not (skip_subscription_management | bool)

  - name: Subscribe only to the ose repo
    command: subscription-manager repos --enable=rhel-7-server-ose-3.1-rpms
    when: not (skip_subscription_management | bool)

  - name: Update current package set
{'fraction_non_alphanumeric': 0.09217171717171717, 'fraction_numerical': 0.002946127946127946, 'mean_word_length': 3.401851851851852, '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': '4256264', 'n_tokens_mistral': 791, 'n_tokens_neox': 761, 'n_words': 226}