<commit_before># Launches an ec2 instance and blocks until the instance is up
# adds it to the host group 

- name: launch_ec2 | Launch ec2 instance 
  local_action: 
    module: ec2 
    keypair: "{{ keypair }}"
    group: "{{ security_group }}"
    instance_type: "{{ instance_type }}"
    image: "{{ ami }}"
    wait: true 
    region: "{{ region }}"
    instance_tags: "{{instance_tags}}"
  register: ec2

- name: launch_instance | Add new instance to host group
  local_action: add_host hostname=${item.public_ip} groupname=launched 
  with_items: ${ec2.instances} 

- name: launch_instance | Wait for SSH to come up
  local_action: wait_for host=${item.public_dns_name} port=22 delay=60 timeout=320 state=started
  with_items: ${ec2.instances}
<commit_msg>adding size to launch for ec2<commit_after># Launches an ec2 instance and blocks until the instance is up
# adds it to the host group 

- name: launch_ec2 | Launch ec2 instance 
  local_action: 
    module: ec2 
    keypair: "{{ keypair }}"
    group: "{{ security_group }}"
    instance_type: "{{ instance_type }}"
    image: "{{ ami }}"
    wait: true 
    region: "{{ region }}"
    instance_tags: "{{instance_tags}}"
    size: "{{ size }}"
  register: ec2

- name: launch_instance | Add new instance to host group
  local_action: add_host hostname=${item.public_ip} groupname=launched 
  with_items: ${ec2.instances} 

- name: launch_instance | Wait for SSH to come up
  local_action: wait_for host=${item.public_dns_name} port=22 delay=60 timeout=320 state=started
  with_items: ${ec2.instances}

{'fraction_non_alphanumeric': 0.11580294305822136, 'fraction_numerical': 0.018554062699936022, 'mean_word_length': 3.949367088607595, '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': '5272951', 'n_tokens_mistral': 540, 'n_tokens_neox': 509, 'n_words': 153}