<commit_before>---
- name: "Get load balancer DNS name"
  command: "kubectl get services -o jsonpath='{.items[?(@.metadata.name==\"{{ service_name }}\")].status.loadBalancer.ingress[?(@.hostname)].hostname}'"
  register: service_url_output

- set_fact:
    service_url: "{{ service_url_output.stdout }}"

- name: "Print url {{ service_url }}"
  debug:
    msg: "{{ service_url }}"<commit_msg>added wait until service dns name is available in kubectl<commit_after>---
- name: "Get load balancer DNS name"
  command: "kubectl get services -o jsonpath='{.items[?(@.metadata.name==\"{{ service_name }}\")].status.loadBalancer.ingress[?(@.hostname)].hostname}'"
  register: service_url_output
  until: service_url_output.stdout != ""
  retries: 60
  delay: 5

- set_fact:
    service_url: "{{ service_url_output.stdout }}"

- name: "Print url {{ service_url }}"
  debug:
    msg: "{{ service_url }}"
{'fraction_non_alphanumeric': 0.1789709172259508, 'fraction_numerical': 0.003355704697986577, 'mean_word_length': 4.49079754601227, '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': '6882118', 'n_tokens_mistral': 317, 'n_tokens_neox': 311, 'n_words': 69}