<commit_before>---
- name: run consul container
  sudo: yes
  docker: >
    name=consul
    image=progrium/consul
    state=running
    hostname={{ inventory_hostname }}
    volumes=/var/run/docker.sock:/tmp/docker.sock
    privileged=yes
    ports=8300:8300,8301:8301,8301:8301/udp,8302:8302,8302:8302/udp,8400:8400,8500:8500,8600:53/udp
    command="{% if consul_is_server is defined %}-server -bootstrap-expect {{ consul_bootstrap_expect }}{% endif %} -advertise {{ ansible_eth0.ipv4.address }} -rejoin -retry-join {{ consul_retry_join}}"
<commit_msg>Added consul data volume for persistent state.<commit_after>---
- name: create consul data volume
  sudo: yes
  docker: >
    name=consul-data-volume
    image=tianon/true
    state=present
    volumes=/data

- name: run consul container
  sudo: yes
  docker: >
    name=consul
    image=progrium/consul
    state=running
    hostname={{ inventory_hostname }}
    volumes=/var/run/docker.sock:/tmp/docker.sock
    volumes_from=consul-data-volume
    privileged=yes
    ports=8300:8300,8301:8301,8301:8301/udp,8302:8302,8302:8302/udp,8400:8400,8500:8500,8600:53/udp
    command="{% if consul_is_server is defined %}-server -bootstrap-expect {{ consul_bootstrap_expect }}{% endif %} -advertise {{ ansible_eth0.ipv4.address }} -rejoin -retry-join {{ consul_retry_join}}"

{'fraction_non_alphanumeric': 0.13540090771558244, 'fraction_numerical': 0.09682299546142209, 'mean_word_length': 4.229249011857707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2332314', 'n_tokens_mistral': 562, 'n_tokens_neox': 492, 'n_words': 79}