<commit_before>---
- name: put hbase-master eye config file
  template: src=hbase/master.rb dest=/etc/eye/hbase-master-{{ env_name }}.rb owner=root group=root mode=0644
  when: "not (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04')"

- name: load config in eye
  command: bash -c "source /usr/local/rvm/scripts/rvm && eye l /etc/eye/apps.eye"
  become: yes
  when: "not (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04')"

- name: put systemd unit file to its destination
  template: src=hbase-master.service dest=/etc/systemd/system/hbase-master-{{ env_name }}.service owner=root group=root mode=0644
  when: "ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'"
  notify: systemctl daemon-reload

- name: enable hbase-master service
  service: name=hbase-master-{{ env_name }} enabled=yes state=started
  when: "ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'"<commit_msg>Adapt to 18.04<commit_after>---
- name: put hbase-master eye config file
  template: src=hbase/master.rb dest=/etc/eye/hbase-master-{{ env_name }}.rb owner=root group=root mode=0644
  when: "not (ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('16.04', '>='))"

- name: load config in eye
  command: bash -c "source /usr/local/rvm/scripts/rvm && eye l /etc/eye/apps.eye"
  become: yes
  when: "not (ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('16.04', '>='))"

- name: put systemd unit file to its destination
  template: src=hbase-master.service dest=/etc/systemd/system/hbase-master-{{ env_name }}.service owner=root group=root mode=0644
  when: "ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('16.04', '>=')"
  notify: systemctl daemon-reload

- name: enable hbase-master service
  service: name=hbase-master-{{ env_name }} enabled=yes state=started
  when: "ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('16.04', '>=')"
{'fraction_non_alphanumeric': 0.14188200877620674, 'fraction_numerical': 0.025353486104339348, 'mean_word_length': 5.294478527607362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1821963', 'n_tokens_mistral': 749, 'n_tokens_neox': 669, 'n_words': 165}