<commit_before>#!/usr/bin/env ansible-playbook
---
- name: Do the reboot and wait dance.
  hosts: securedrop
  become: yes
  tasks:
    - name: Gather EC2 facts to establish ansible_ec2_public_hostname.
      ec2_facts:

    - name: Reboot.
      command: reboot

    - name: Wait for server to come back.
      local_action: wait_for
      args:
        host: "{{ ansible_ec2_public_hostname }}"
        port: "{{ ansible_port | default(22) }}"
        delay: 20
        timeout: 400
        search_regex: OpenSSH
        state: started
      # Wait action runs on localhost, and does NOT require sudo.
      become: false<commit_msg>Add 200 seconds to reboot timeout task<commit_after>#!/usr/bin/env ansible-playbook
---
- name: Do the reboot and wait dance.
  hosts: securedrop
  become: yes
  tasks:
    - name: Gather EC2 facts to establish ansible_ec2_public_hostname.
      ec2_facts:

    - name: Reboot.
      command: reboot

    - name: Wait for server to come back.
      local_action: wait_for
      args:
        host: "{{ ansible_ec2_public_hostname }}"
        port: "{{ ansible_port | default(22) }}"
        delay: 20
        timeout: 600
        search_regex: OpenSSH
        state: started
      # Wait action runs on localhost, and does NOT require sudo.
      become: false
{'fraction_non_alphanumeric': 0.08648648648648649, 'fraction_numerical': 0.019305019305019305, 'mean_word_length': 2.3316195372750643, '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': '957056', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 127}