<commit_before>---
- name: ensure /etc/redpanda exists
  file:
    path: /etc/redpanda
    state: directory

- name: configure redpanda
  notify:
    - restart redpanda-tuner
    - restart redpanda
  vars:
    use_public_ips: "{{ advertise_public_ips | default(false, true) }}"
  shell: |
    rpk config set cluster_id 'redpanda'
    rpk config set organization 'redpanda-test'
    rpk config set redpanda.advertised_kafka_api '{
    address: {{ hostvars[inventory_hostname].ec2_private_ip_address }},
    port: 9092
    }' --format yaml
    rpk config set redpanda.kafka_api_tls '{
    enabled: false
    }' --format yaml<commit_msg>Remove unused variable<commit_after>---
- name: ensure /etc/redpanda exists
  file:
    path: /etc/redpanda
    state: directory

- name: configure redpanda
  notify:
    - restart redpanda-tuner
    - restart redpanda
  shell: |
    rpk config set cluster_id 'redpanda'
    rpk config set organization 'redpanda-test'
    rpk config set redpanda.advertised_kafka_api '{
    address: {{ hostvars[inventory_hostname].ec2_private_ip_address }},
    port: 9092
    }' --format yaml
    rpk config set redpanda.kafka_api_tls '{
    enabled: false
    }' --format yaml
{'fraction_non_alphanumeric': 0.0985797827903091, 'fraction_numerical': 0.00835421888053467, 'mean_word_length': 3.1453287197231834, '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': '520997', 'n_tokens_mistral': 418, 'n_tokens_neox': 404, 'n_words': 100}