<commit_before>- name: "Set 'UseDNS no' in /etc/ssh/sshd_config"
  lineinfile:
    dest: /etc/ssh/sshd_config
    line: "UseDNS no"
    regexp: "^UseDNS"
    insertafter: EOF

- name: "Set 'PermitRootLogin without-password' in /etc/ssh/sshd_config"
  lineinfile:
    dest: /etc/ssh/sshd_config
    line: "PermitRootLogin without-password"
    regexp: "^PermitRootLogin"
    insertafter: EOF

- name: "Create ssh identity for root"
  openssh_keypair:
    path: /root/.ssh/id_ed25519
    comment: "root@{{ ansible_hostname }}"
    type: ed25519
    owner: root
    group: wheel

- name: "Set authorized_key"
  authorized_key:
    user: root
    key: "{{ bsdkit_ssh_public_key }}"
  when: bsdkit_ssh_public_key | length > 0
<commit_msg>Create '/root/.ssh'.<commit_after>- name: "Set 'UseDNS no' in /etc/ssh/sshd_config"
  lineinfile:
    dest: /etc/ssh/sshd_config
    line: "UseDNS no"
    regexp: "^UseDNS"
    insertafter: EOF

- name: "Set 'PermitRootLogin without-password' in /etc/ssh/sshd_config"
  lineinfile:
    dest: /etc/ssh/sshd_config
    line: "PermitRootLogin without-password"
    regexp: "^PermitRootLogin"
    insertafter: EOF

- name: "Create ssh directory for root"
  file:
    path: /root/.ssh
    state: directory
    owner: root
    group: wheel

- name: "Create ssh identity for root"
  openssh_keypair:
    path: /root/.ssh/id_ed25519
    comment: "root@{{ ansible_hostname }}"
    type: ed25519
    owner: root
    group: wheel

- name: "Set authorized_key"
  authorized_key:
    user: root
    key: "{{ bsdkit_ssh_public_key }}"
  when: bsdkit_ssh_public_key | length > 0

{'fraction_non_alphanumeric': 0.11897307451471509, 'fraction_numerical': 0.013775829680651221, 'mean_word_length': 3.2387267904509285, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7193418', 'n_tokens_mistral': 650, 'n_tokens_neox': 594, 'n_words': 142}