<commit_before>---
## ---------------------
## SSH key configuration
## ---------------------
- name: create ssh key
  command: >
    ssh-keygen -t rsa -b 4096
    -C "{{ ansible_hostname | regex_replace('-|_', ' ') }}"
    -f "{{ ansible_user_dir }}/.ssh/id_rsa"
  args:
    creates: "{{ ansible_user_dir }}/.ssh/id_rsa"
  # TODO: check mode is still skipped. pending PR https://github.com/ansible/ansible/pull/40428
  # TODO: it should be coming in the 2.7.0 release

- name: check ssh key exists
  stat:
    path: "{{ ansible_user_dir }}/.ssh/id_rsa"
  register: ssh_key

- name: upload key to github
  github_key:
    name: >-
      {{ ansible_hostname | regex_replace('-|_', ' ') }}
      {{ '- ' + ansible_product_name if ansible_product_name is defined else '' }}<commit_msg>Remove comment since ansible v2.7.0 released<commit_after>---
## ---------------------
## SSH key configuration
## ---------------------
- name: create ssh key
  command: >
    ssh-keygen -t rsa -b 4096
    -C "{{ ansible_hostname | regex_replace('-|_', ' ') }}"
    -f "{{ ansible_user_dir }}/.ssh/id_rsa"
  args:
    creates: "{{ ansible_user_dir }}/.ssh/id_rsa"

- name: check ssh key exists
  stat:
    path: "{{ ansible_user_dir }}/.ssh/id_rsa"
  register: ssh_key

- name: upload key to github
  github_key:
    name: >-
      {{ ansible_hostname | regex_replace('-|_', ' ') }}
      {{ '- ' + ansible_product_name if ansible_product_name is defined else '' }}
{'fraction_non_alphanumeric': 0.20925414364640885, 'fraction_numerical': 0.013121546961325966, 'mean_word_length': 2.4014084507042255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '2302392', 'n_tokens_mistral': 535, 'n_tokens_neox': 499, 'n_words': 123}