<commit_before>---

- name: "Test if UCP controller is up"
  uri:
    url: "https://{{ ucp_fqdn }}/_ping"
    validate_certs: no
  register: ucp_primary
  ignore_errors: yes

- include: ucp-primary.yml
  when: ucp_primary.status != 200
<commit_msg>Better test for primary running, no error on fail<commit_after>---

- name: "Test if UCP primary controller already exists"
  shell: "curl --insecure --silent --output /dev/null --write-out '%{http_code}' https://{{ ucp_fqdn }}/_ping"
  register: status

- include: ucp-primary.yml
  when: status.stdout != "200"

{'fraction_non_alphanumeric': 0.14616755793226383, 'fraction_numerical': 0.0106951871657754, 'mean_word_length': 3.496, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3855673', 'n_tokens_mistral': 206, 'n_tokens_neox': 194, 'n_words': 59}