<commit_before>---
- name: Rebuild nodes - Foreman
  hosts: localhost
  gather_facts: no
  tasks:
    - name: Rebuild nodes
      foreman_provisioner:
           auth_url: "{{ provision.url }}"
           username: "{{ provision.user }}"
           password: "{{ <PASSWORD> }}"
           host_id: "{{ provision.host.address }}"
           wait_for_host: "{{ provision.wait | lower }}"
           mgmt_strategy: "{{ provision.strategy }}"
           mgmt_action: "{{ provision.action }}"
           ipmi_username: "{{ (provision.host.ipmi|default({})).username | default(omit) }}"
           ipmi_password: "{{ (provision.host.ipmi|default({})).password | default(omit) }}"
      register: created_nodes

    - name: wait for ssh
      wait_for:
           port: 22
           host: "{{ provision.host.address }}"
           search_regex: OpenSSH
      delay: 10
      when: provision.wait

- name: Generate host list
  hosts: localhost
  gather_facts: no
  tasks:
      - name: Add hosts to host list
        add_host:
            name: "{{ provision.host.address }}"
            # TODO: Move tester and even undercloud grouping to later phases in future
            groups: "baremetal,undercloud,tester"
            ansible_ssh_host: "{{ provision.host.address }}"
            ansible_ssh_user: "{{ provision.host.user }}"
            ansible_ssh_pass: "{{ provision.host.password | default(omit) }}"
            ansible_ssh_private_key_file: "{{ provision.host.key | default(omit) }}"<commit_msg>Removes unnecessary group definition in Foreman<commit_after>---
- name: Rebuild nodes - Foreman
  hosts: localhost
  gather_facts: no
  tasks:
    - name: Rebuild nodes
      foreman_provisioner:
           auth_url: "{{ provision.url }}"
           username: "{{ provision.user }}"
           password: "{{ <PASSWORD> }}"
           host_id: "{{ provision.host.address }}"
           wait_for_host: "{{ provision.wait | lower }}"
           mgmt_strategy: "{{ provision.strategy }}"
           mgmt_action: "{{ provision.action }}"
           ipmi_username: "{{ (provision.host.ipmi|default({})).username | default(omit) }}"
           ipmi_password: "{{ (provision.host.ipmi|default({})).password | default(omit) }}"
      register: created_nodes

    - name: wait for ssh
      wait_for:
           port: 22
           host: "{{ provision.host.address }}"
           search_regex: OpenSSH
      delay: 10
      when: provision.wait

- name: Generate host list
  hosts: localhost
  gather_facts: no
  tasks:
      - name: Add hosts to host list
        add_host:
            name: "{{ provision.host.address }}"
            # TODO: Move tester and even undercloud grouping to later phases in future
            groups: "baremetal"
            ansible_ssh_host: "{{ provision.host.address }}"
            ansible_ssh_user: "{{ provision.host.user }}"
            ansible_ssh_pass: "{{ <PASSWORD> | default(omit) }}"
            ansible_ssh_private_key_file: "{{ provision.host.key | default(omit) }}"
{'fraction_non_alphanumeric': 0.13128957014328557, 'fraction_numerical': 0.0026657780739753416, 'mean_word_length': 2.306167400881057, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1746517', 'n_tokens_mistral': 925, 'n_tokens_neox': 884, 'n_words': 193}