<commit_before>---

- name: derive the etcd client connection URL
  set_fact: etcd_api_url=http://{{ ansible_eth1.ipv4.address }}:{{ etcd_api_port }}
  tags: service

- name: etcd2 unit file
  template: src=etcd2.service.j2 dest=/etc/systemd/system/etcd2.service
  register: etcd2_unit
  sudo: yes

- name: reload systemctl daemon
  command: systemctl daemon-reload
  when: etcd2_unit | changed
  sudo: yes

- name: etcd2 service
  service: name=etcd2.service enabled=yes state=started
  sudo: yes

- name: ensure etcd2 is listening
  wait_for: port={{ etcd_api_port }} delay=5 state=started

- name: bootstrap the etcd key
  command: etcdctl set /deconst/control_updated 1<commit_msg>Keep the ectdctl task from being "changed".<commit_after>---

- name: derive the etcd client connection URL
  set_fact: etcd_api_url=http://{{ ansible_eth1.ipv4.address }}:{{ etcd_api_port }}
  tags: service

- name: etcd2 unit file
  template: src=etcd2.service.j2 dest=/etc/systemd/system/etcd2.service
  register: etcd2_unit
  sudo: yes

- name: reload systemctl daemon
  command: systemctl daemon-reload
  when: etcd2_unit | changed
  sudo: yes

- name: etcd2 service
  service: name=etcd2.service enabled=yes state=started
  sudo: yes

- name: ensure etcd2 is listening
  wait_for: port={{ etcd_api_port }} delay=5 state=started

- name: bootstrap the etcd key
  command: etcdctl set /deconst/control_updated 1
  changed_when: no
{'fraction_non_alphanumeric': 0.10007047216349542, 'fraction_numerical': 0.018322762508809022, 'mean_word_length': 4.2592592592592595, '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': '1654700', 'n_tokens_mistral': 515, 'n_tokens_neox': 499, 'n_words': 139}