<commit_before>---

- name: Adding ssh directory
  file: >
    path=/home/{{ item.username }}/.ssh
    owner={{ item.username }}
    group={{ item.group if item.group is defined else (users_group if users_group != false else item.username) }}
    state=directory
    mode=0700
  with_items: users
  tags:
    - system
    - users
    - config

- name: Adding ssh keys
  template: >
    src=home-user-ssh-private-key.j2
    dest=/home/{{ item.username }}/.ssh/id_rsa
    owner={{ item.username }}
    group={{ item.group if item.group is defined else (users_group if users_group != false else item.username) }}
    mode=0600
  with_items: users
  tags:
    - system
    - users
    - config

- name: Adding authorized keys
  authorized_key: >
    user={{ item.0.username }}
    key="{{ item.1 }}"
  with_subelements:
    - users
    - authorized_keys
  tags:
    - system
    - users
    - config<commit_msg>replaced /home/ reference with ~<commit_after>---

- name: Adding ssh directory
  file: >
    path=~{{ item.username }}/.ssh
    owner={{ item.username }}
    group={{ item.group if item.group is defined else (users_group if users_group != false else item.username) }}
    state=directory
    mode=0700
  with_items: users
  tags:
    - system
    - users
    - config

- name: Adding ssh keys
  template: >
    src=home-user-ssh-private-key.j2
    dest=~{{ item.username }}/.ssh/id_rsa
    owner={{ item.username }}
    group={{ item.group if item.group is defined else (users_group if users_group != false else item.username) }}
    mode=0600
  with_items: users
  tags:
    - system
    - users
    - config

- name: Adding authorized keys
  authorized_key: >
    user={{ item.0.username }}
    key="{{ item.1 }}"
  with_subelements:
    - users
    - authorized_keys
  tags:
    - system
    - users
    - config
{'fraction_non_alphanumeric': 0.12781130005485464, 'fraction_numerical': 0.012068019747668678, 'mean_word_length': 2.4875717017208414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6464079', 'n_tokens_mistral': 613, 'n_tokens_neox': 591, 'n_words': 161}