<commit_before>---

  - name: Install the latest versions of utility packages using yum
    yum: pkg={{item}} state=latest
    with_items:
     - asciidoc
     - byobu
     - curl
     - git
     - htop
     - iotop
     - ioping
     - lshw
     - nmap
     - p7zip
     - pngcrush
     - setroubleshoot
     - setools
     - sos
     - telnet
     - unzip
     - vim
     - wget
     - fio
     - tcpdump
     - duplicity
     - pv
     - mc
     - glances
     - iftop
     - iptraf-ng
     - nmon
     - yum-utils
     - lm_sensors
     - strace
     - certbot

  # This could be done using yum but depending on the ansible version it's either  "'@Development Tools'" or  '@Development Tools'
  - name: Install the 'Development Tools' group using yum
    command: yum -y install '@Development Tools'
    args:
      creates: /usr/bin/svn

  - name: Install SCL repository
    yum: name=centos-release-scl state=latest

  - name: Install rh-ruby24
    yum: name=rh-ruby24 state=latest

  - name: Enable ruby 2.4 for root
    lineinfile:
      path: /root/.bashrc
      line: 'source scl_source enable rh-ruby24'

  - name: Enable ruby 2.4 for dylan
    lineinfile:
      path: /home/dylan/.bashrc
      line: 'source scl_source enable rh-ruby24'

  - name: Install the latest versions of additional development packages using yum
    yum: pkg={{item}} state=latest
    with_items:
     - gcc
     - php-cli
     - python-devel
     - python-pip
     - wireless-tools
     - rh-ruby24-build
     - rh-ruby24-ruby-devel
     - rh-ruby24-rubygems-devel
     - rh-ruby24-rubygem-bundler
     - openssl-devel

  - name: Checkout neofetch from git repository
    git:
      repo: https://github.com/dylanaraps/neofetch.git
      dest: /opt/neofetch

  - name: Enable neofetch on login for root
    lineinfile:
      path: /root/.bashrc
      line: '/opt/neofetch/neofetch'

  - name: Enable neofetch on login for dylan
    lineinfile:
      path: /home/dylan/.bashrc
      line: '/opt/neofetch/neofetch'

  - name: upgrade pip
    shell: pip install --upgrade pip

  - name: install speedtest
    shell: pip install speedtest-cli

  - name: use pip to install the latest glances version
    shell: bash -c 'pip install --upgrade setuptools glances[action,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]; pip install --upgrade glances'

  - name: Install the latest version of jekyll and travis using rubygems
    shell: bash -c 'source scl_source enable rh-ruby24; gem install jekyll travis bundler rubygems-update; update_rubygems'

  - name: Remove immutable bit from /usr/lib/udev/rules.d/60-net.rules
    command: chattr -i /usr/lib/udev/rules.d/60-net.rules

  - name: Install cockpit and docker
    yum: pkg={{item}} state=latest
    with_items:
     - cockpit
     - cockpit-storaged
     - cockpit-selinux
     - cockpit-sosreport
     - cockpit-docker
     - docker

  - name: Enable cockpit
    systemd:
      name: cockpit.socket
      state: started
      enabled: True

  # - name: Newer pyOpenSSL
  #   command: yum -y install https://cbs.centos.org/kojifiles/packages/pyOpenSSL/17.3.0/3.el7/noarch/python2-pyOpenSSL-17.3.0-3.el7.noarch.rpm

  - name: If Server with GUI install, remove useless packages
    yum: pkg={{item}} state=absent
    with_items:
     - alsa-firmware
     - cheese
     - gnome-software
     - gnome-weather
     - empathy
     - totem
     - cups
     - firefox # web browsing on a server isn't a great idea, but dillo has a much smaller footprint if needed
     - gutenprint
     - ghostscript
     - evince
     - gnome-font-viewer
     - gnome-user-docs
     - gnome-color-manager
     - gnome-screenshot
     - gnome-contacts
     - gnome-dictionary
     - gnome-abrt
     - gnome-clocks
     - gnome-boxes
     - system-config-printer
     - gucharmap
     - vinagre
     - eog
     - orca
     - icedtea-web
     - java
     - java-1.8.0-openjdk-headless
     - openscap # not really useless, but takes up a lot of disk space and I don't use it
<commit_msg>package count output of neofetch was slow, so disable it<commit_after>---

  - name: Install the latest versions of utility packages using yum
    yum: pkg={{item}} state=latest
    with_items:
     - asciidoc
     - byobu
     - curl
     - git
     - htop
     - iotop
     - ioping
     - lshw
     - nmap
     - p7zip
     - pngcrush
     - setroubleshoot
     - setools
     - sos
     - telnet
     - unzip
     - vim
     - wget
     - fio
     - tcpdump
     - duplicity
     - pv
     - mc
     - glances
     - iftop
     - iptraf-ng
     - nmon
     - yum-utils
     - lm_sensors
     - strace
     - certbot

  # This could be done using yum but depending on the ansible version it's either  "'@Development Tools'" or  '@Development Tools'
  - name: Install the 'Development Tools' group using yum
    command: yum -y install '@Development Tools'
    args:
      creates: /usr/bin/svn

  - name: Install SCL repository
    yum: name=centos-release-scl state=latest

  - name: Install rh-ruby24
    yum: name=rh-ruby24 state=latest

  - name: Enable ruby 2.4 for root
    lineinfile:
      path: /root/.bashrc
      line: 'source scl_source enable rh-ruby24'

  - name: Enable ruby 2.4 for dylan
    lineinfile:
      path: /home/dylan/.bashrc
      line: 'source scl_source enable rh-ruby24'

  - name: Install the latest versions of additional development packages using yum
    yum: pkg={{item}} state=latest
    with_items:
     - gcc
     - php-cli
     - python-devel
     - python-pip
     - wireless-tools
     - rh-ruby24-build
     - rh-ruby24-ruby-devel
     - rh-ruby24-rubygems-devel
     - rh-ruby24-rubygem-bundler
     - openssl-devel

  - name: Checkout neofetch from git repository
    git:
      repo: https://github.com/dylanaraps/neofetch.git
      dest: /opt/neofetch

  - name: Enable neofetch on login for root
    lineinfile:
      path: /root/.bashrc
      line: '/opt/neofetch/neofetch --disable packages'

  - name: Enable neofetch on login for dylan
    lineinfile:
      path: /home/dylan/.bashrc
      line: '/opt/neofetch/neofetch --disable packages'

  - name: upgrade pip
    shell: pip install --upgrade pip

  - name: install speedtest
    shell: pip install speedtest-cli

  - name: use pip to install the latest glances version
    shell: bash -c 'pip install --upgrade setuptools glances[action,browser,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]; pip install --upgrade glances'

  - name: Install the latest version of jekyll and travis using rubygems
    shell: bash -c 'source scl_source enable rh-ruby24; gem install jekyll travis bundler rubygems-update; update_rubygems'

  - name: Remove immutable bit from /usr/lib/udev/rules.d/60-net.rules
    command: chattr -i /usr/lib/udev/rules.d/60-net.rules

  - name: Install cockpit and docker
    yum: pkg={{item}} state=latest
    with_items:
     - cockpit
     - cockpit-storaged
     - cockpit-selinux
     - cockpit-sosreport
     - cockpit-docker
     - docker

  - name: Enable cockpit
    systemd:
      name: cockpit.socket
      state: started
      enabled: True

  # - name: Newer pyOpenSSL
  #   command: yum -y install https://cbs.centos.org/kojifiles/packages/pyOpenSSL/17.3.0/3.el7/noarch/python2-pyOpenSSL-17.3.0-3.el7.noarch.rpm

  - name: If Server with GUI install, remove useless packages
    yum: pkg={{item}} state=absent
    with_items:
     - alsa-firmware
     - cheese
     - gnome-software
     - gnome-weather
     - empathy
     - totem
     - cups
     - firefox # web browsing on a server isn't a great idea, but dillo has a much smaller footprint if needed
     - gutenprint
     - ghostscript
     - evince
     - gnome-font-viewer
     - gnome-user-docs
     - gnome-color-manager
     - gnome-screenshot
     - gnome-contacts
     - gnome-dictionary
     - gnome-abrt
     - gnome-clocks
     - gnome-boxes
     - system-config-printer
     - gucharmap
     - vinagre
     - eog
     - orca
     - icedtea-web
     - java
     - java-1.8.0-openjdk-headless
     - openscap # not really useless, but takes up a lot of disk space and I don't use it

{'fraction_non_alphanumeric': 0.0936384889873262, 'fraction_numerical': 0.010582010582010581, 'mean_word_length': 2.0602409638554215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '752919', 'n_tokens_mistral': 2941, 'n_tokens_neox': 2686, 'n_words': 739}