<commit_before>- name: add grafana apt source
  shell: echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main"| tee /etc/apt/sources.list.d/packagecloud.list

- name: update packages
  apt:
      update_cache: yes
      upgrade: dist

- name: install packagecloud pgp key
  apt_key:
    id: C2E73424D59097AB
    url:  https://packagecloud.io/gpg.key
    state: present

- name: install grafana server
  apt:
    name: grafana
    state: present

- name: configure grafana server
  template: src=grafana.ini.j2 dest=/etc/grafana/grafana.ini

- name: start grafana service
  service: name=grafana-server state=started

- name: install nginx kibana prometheus pass
  copy: src={{ item }} dest=/etc/nginx/{{ item }}
  with_items:
    - ".htpasswd.pass"
    - ".htpasswd"

- name: configure nginx
  template:
    src: monitor.nginx.j2
    dest: /etc/nginx/sites-enabled/monitor    
  notify: restart nginx

- name: configure kibana
  template:
    src: monitor.kibana.j2
    dest: /etc/nginx/sites-enabled/kibana    
  notify: restart nginx

- name: configure prometheus
  template:
    src: monitor.prometheus.j2
    dest: /etc/nginx/sites-enabled/prometheus
  notify: restart nginx

- name: configure grafana
  template:
    src: monitor.grafana.j2
    dest: /etc/nginx/sites-enabled/grafana
  notify: restart nginx<commit_msg>Only restart nginx once<commit_after>- name: add grafana apt source
  shell: echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main"| tee /etc/apt/sources.list.d/packagecloud.list

- name: update packages
  apt:
      update_cache: yes
      upgrade: dist

- name: install packagecloud pgp key
  apt_key:
    id: C2E73424D59097AB
    url:  https://packagecloud.io/gpg.key
    state: present

- name: install grafana server
  apt:
    name: grafana
    state: present

- name: configure grafana server
  template: src=grafana.ini.j2 dest=/etc/grafana/grafana.ini

- name: start grafana service
  service: name=grafana-server state=started

- name: install nginx kibana prometheus pass
  copy: src={{ item }} dest=/etc/nginx/{{ item }}
  with_items:
    - ".htpasswd.pass"
    - ".htpasswd"

- name: configure nginx
  template:
    src: monitor.nginx.j2
    dest: /etc/nginx/sites-enabled/monitor    

- name: configure kibana
  template:
    src: monitor.kibana.j2
    dest: /etc/nginx/sites-enabled/kibana    

- name: configure prometheus
  template:
    src: monitor.prometheus.j2
    dest: /etc/nginx/sites-enabled/prometheus

- name: configure grafana
  template:
    src: monitor.grafana.j2
    dest: /etc/nginx/sites-enabled/grafana

- name: restart service nginx
  service:
    name: nginx
    state: restarted
{'fraction_non_alphanumeric': 0.10603222180591983, 'fraction_numerical': 0.011989509179467965, 'mean_word_length': 3.0825688073394497, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1181114', 'n_tokens_mistral': 991, 'n_tokens_neox': 939, 'n_words': 229}