<commit_before>---
- include: go-common.yml
- name: yum install go-server
  sudo: yes
  yum: pkg=go-server-{{go_version}} state=present
  notify:
  - restart go-server
  when: ansible_pkg_mgr=='yum'

- name: apt install go-server
  sudo: yes
  apt: pkg=go-server={{go_version}} state=present force=yes
  when: ansible_pkg_mgr=='apt'
  notify:
  - restart go-server

- name: start go-server
  sudo: yes
  service: name=go-server state=started
  notify:
     - ensure go-server running

# These won't work if you don't have firewalld, but they won't error out either
- name: enable Go HTTP traffic through firewalld
  sudo: yes
  firewalld: port=8153 permanent=true state=enabled

- name: enable Go HTTPS traffic through firewalld
  sudo: yes
  firewalld: port=8154/tcp permanent=true state=enabled
<commit_msg>Add back in protocol to the firewalld statement.  Removed for an example and accidentally saved.<commit_after>---
- name: yum install go-server
  sudo: yes
  yum: pkg=go-server-{{go_version}} state=present
  notify:
  - restart go-server
  when: ansible_pkg_mgr=='yum'

- name: apt install go-server
  sudo: yes
  apt: pkg=go-server={{go_version}} state=present force=yes
  when: ansible_pkg_mgr=='apt'
  notify:
  - restart go-server

- name: start go-server
  sudo: yes
  service: name=go-server state=started
  notify:
     - ensure go-server running

# These won't work if you don't have firewalld, but they won't error out either
- name: enable Go HTTP traffic through firewalld
  sudo: yes
  firewalld: port=8153/tcp permanent=true state=enabled

- name: enable Go HTTPS traffic through firewalld
  sudo: yes
  firewalld: port=8154/tcp permanent=true state=enabled

{'fraction_non_alphanumeric': 0.0994047619047619, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 3.9881305637982196, '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': '2315618', 'n_tokens_mistral': 584, 'n_tokens_neox': 554, 'n_words': 180}