<commit_before>---
- name: HAProxy defaults
  template: src=etc/default/haproxy dest=/etc/default/haproxy
  notify: restart haproxy

- name: haproxy ppa - required to get a version new enough to support ssl
  apt_repository: repo='ppa:vbernat/haproxy-1.5' update_cache=yes

- name: install haproxy
  apt: pkg=haproxy

# WORKAROUND: `service haproxy stop` fails due to incorrect `start-stop-daemon --pid`
- template: src=etc/init.d/haproxy dest=/etc/init.d/haproxy mode=0755

- name: install ssl cert+key
  template: >
    src=etc/haproxy/openstack.pem
    dest=/etc/haproxy/openstack.pem
    owner=haproxy
    group=haproxy
    mode=0600
  notify: reload haproxy
  tags:
    - ssl

- name: haproxy config
  template: |
    src=etc/haproxy/haproxy_{{ haproxy_type }}.cfg
    dest=/etc/haproxy/haproxy.cfg
    mode=0644
  notify: reload haproxy
<commit_msg>clean up the haproxy role<commit_after>---
- name: HAProxy defaults
  template: src=etc/default/haproxy dest=/etc/default/haproxy
  notify: restart haproxy

- name: haproxy ppa - required to get a version new enough to support ssl
  apt_repository: repo='ppa:vbernat/haproxy-1.5' update_cache=yes

- name: install haproxy
  apt: pkg=haproxy

# WORKAROUND: `service haproxy stop` fails due to incorrect `start-stop-daemon --pid`
- name: fix haproxy init script
  template: src=etc/init.d/haproxy dest=/etc/init.d/haproxy mode=0755

- name: install ssl cert+key
  template: src=etc/haproxy/openstack.pem dest=/etc/haproxy/openstack.pem
            owner=haproxy group=haproxy mode=0600
  notify: reload haproxy
  tags:
    - ssl

- name: haproxy config
  template: src=etc/haproxy/haproxy_{{ haproxy_type }}.cfg
            dest=/etc/haproxy/haproxy.cfg mode=0644
  notify: reload haproxy

{'fraction_non_alphanumeric': 0.10734787600459242, 'fraction_numerical': 0.016073478760045924, 'mean_word_length': 3.660427807486631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1436307', 'n_tokens_mistral': 723, 'n_tokens_neox': 652, 'n_words': 153}