<commit_before>---

- name: check
  command: dpkg-query -W couchbase-server-community
  register: couchbase_deb
  failed_when: couchbase_deb.rc > 1 # don't fail
  changed_when: couchbase_deb.rc == 1 # not found

- set_fact:
    couchbase_not_installed: "{{ couchbase_deb.rc == 1 }}"

- name: download
  get_url:
    url="https://packages.couchbase.com/releases/{{ couchbase_version }}/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb"
    dest="/tmp/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb"
  when: couchbase_not_installed

- name: install
  apt: deb=/tmp/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb
  when: couchbase_not_installed

- name: dirs
  file:
    path: "{{ item }}"
    state: directory
    mode: 0755
    owner: couchbase
    group: couchbase
  with_items:
    - "{{ node_data_path }}"
    - "{{ node_index_path }}"

- include_role:
    name: couchbase
    tasks_from: node_init<commit_msg>couchbase / debug symbols url<commit_after>---

- name: check
  command: dpkg-query -W couchbase-server-community
  register: couchbase_deb
  failed_when: couchbase_deb.rc > 1 # don't fail
  changed_when: couchbase_deb.rc == 1 # not found

- set_fact:
    couchbase_not_installed: "{{ couchbase_deb.rc == 1 }}"

# https://packages.couchbase.com/releases/4.5.1/couchbase-server-community_4.5.1-debian8_amd64.deb"
# https://packages.couchbase.com/releases/4.5.1/couchbase-server-community-dbg_4.5.1-debian8_amd64.deb
- name: download
  get_url:
    url="https://packages.couchbase.com/releases/{{ couchbase_version }}/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb"
    dest="/tmp/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb"
  when: couchbase_not_installed

- name: install
  apt: deb=/tmp/couchbase-server-community_{{ couchbase_version }}-{{ debian_version }}.deb
  when: couchbase_not_installed

- name: dirs
  file:
    path: "{{ item }}"
    state: directory
    mode: 0755
    owner: couchbase
    group: couchbase
  with_items:
    - "{{ node_data_path }}"
    - "{{ node_index_path }}"

- include_role:
    name: couchbase
    tasks_from: node_init
{'fraction_non_alphanumeric': 0.1396294622684139, 'fraction_numerical': 0.014460009037505649, 'mean_word_length': 3.8874172185430464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1053837', 'n_tokens_mistral': 838, 'n_tokens_neox': 767, 'n_words': 140}