<commit_before>---
- name: install sshd configuration file
  template: "src={{ item.src }} dest={{ item.dest }}"
  with_items:
    - src: config/sshd/sshd_config.j2
      dest: /etc/ssh/sshd_config
  become: true

# Generate host keys
- name: create sshd host keys directory
  file: "path=/etc/ssh/host_keys state=directory"
  become: true

- name: generate fresh rsa key for sshd
  command: <
    ssh-keygen -f /etc/ssh/host_keys/ssh_host_rsa_key -N '' -t rsa && \
      chmod 600 /etc/ssh/host_keys/ssh_host_rsa_key
  args:
    creates: /etc/ssh/host_keys/ssh_host_rsa_key
  become: true

- name: generate fresh dsa key for sshd
  command: <
    ssh-keygen -f /etc/ssh/host_keys/ssh_host_dsa_key -N '' -t dsa && \
      chmod 600 /etc/ssh/host_keys/ssh_host_dsa_key
  args:
    creates: /etc/ssh/host_keys/ssh_host_dsa_key
  become: true<commit_msg>Fixed typo for multi-line strings<commit_after>---
- name: install sshd configuration file
  template: "src={{ item.src }} dest={{ item.dest }}"
  with_items:
    - src: config/sshd/sshd_config.j2
      dest: /etc/ssh/sshd_config
  become: true

# Generate host keys
- name: create sshd host keys directory
  file: "path=/etc/ssh/host_keys state=directory"
  become: true

- name: generate fresh rsa key for sshd
  command: >
    ssh-keygen -f /etc/ssh/host_keys/ssh_host_rsa_key -N '' -t rsa && \
      chmod 600 /etc/ssh/host_keys/ssh_host_rsa_key
  args:
    creates: /etc/ssh/host_keys/ssh_host_rsa_key
  become: true

- name: generate fresh dsa key for sshd
  command: >
    ssh-keygen -f /etc/ssh/host_keys/ssh_host_dsa_key -N '' -t dsa && \
      chmod 600 /etc/ssh/host_keys/ssh_host_dsa_key
  args:
    creates: /etc/ssh/host_keys/ssh_host_dsa_key
  become: true
{'fraction_non_alphanumeric': 0.11904761904761904, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 3.1023809523809525, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5434435', 'n_tokens_mistral': 716, 'n_tokens_neox': 671, 'n_words': 155}