<commit_before>---
#
# Connmon Install
#

- name: Install pip
  easy_install: name=pip
  when: connmon

- name: Install connmon
  pip: name=connmon
  when: connmon

#
# Connmon Setup
#

- name: Configure Connmon Host IP Address
  template:
    src=connmon.cfg.j2
    dest=/etc/connmon.cfg
    owner=root
    group=root
    mode=0644
  with_items:
    - ip_address: "{{ connmon_host }}"
  when: connmon
<commit_msg>Allow connmon to run out of box, by adding task to start connmond in screen session.<commit_after>---
#
# Connmon Install
#

- name: Install pip
  easy_install: name=pip
  when: connmon

- name: Install connmon
  pip: name=connmon
  when: connmon

#
# Connmon Setup
#

- name: Configure Connmon Host IP Address
  template:
    src=connmon.cfg.j2
    dest=/etc/connmon.cfg
    owner=root
    group=root
    mode=0644
  with_items:
    - ip_address: "{{ connmon_host }}"
  when: connmon

# To remove the screen session: screen -X -S connmond kill
- name: Run connmond in screen session on director
  command: screen -d -S connmond -m connmond
  when: connmon and director

{'fraction_non_alphanumeric': 0.09501845018450185, 'fraction_numerical': 0.00922509225092251, 'mean_word_length': 3.1254752851711025, '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': '967389', 'n_tokens_mistral': 391, 'n_tokens_neox': 376, 'n_words': 116}