<commit_before>---
- hosts:  "{{ dc | default('all') }}"
  gather_facts: no
  serial: "{{ serial | default(1) }}"
  tasks:

  - name: upgrade kernel package
    sudo: yes
    yum:
      name: kernel
      state: latest
    register: kernel

  - name: upgrade all packages
    sudo: yes
    yum:
      name: "*"
      state: latest

  - name: reboot host
    sudo: yes
    shell: nohup bash -c "sleep 2s && reboot" &
    register: reboot
    when: kernel.changed

  - name: wait for host boot<commit_msg>Refresh yum cache. Rollout of CentOS 7.1 was causing package installs to fail without this.<commit_after>---
- hosts:  "{{ dc | default('all') }}"
  gather_facts: no
  serial: "{{ serial | default(1) }}"
  tasks:

  - name: refresh yum cache
    sudo: yes
    command: yum makecache

  - name: upgrade kernel package
    sudo: yes
    yum:
      name: kernel
      state: latest
    register: kernel

  - name: upgrade all packages
    sudo: yes
    yum:
      name: "*"
      state: latest

  - name: reboot host
    sudo: yes
    shell: nohup bash -c "sleep 2s && reboot" &
    register: reboot
    when: kernel.changed

  - name: wait for host boot
{'fraction_non_alphanumeric': 0.11351819757365685, 'fraction_numerical': 0.005199306759098787, 'mean_word_length': 2.28125, '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': '3197356', 'n_tokens_mistral': 397, 'n_tokens_neox': 369, 'n_words': 130}