<commit_before>---
# tsadm user group
- name: tsadm user group
  group: name={{tsadm_group}} state=present


# tsadm user
- name: tsadm user
  user:
    uid=61000
    name={{tsadm_user}}
    comment=tsadm
    group={{tsadm_group}}
    home={{tsadm_homedir}}
    shell=/bin/bash
    state=present


# tsadm user homedir data
- name: tsadm homedir data
  copy:
    src=tsadm.home/
    dest={{tsadm_homedir}}
    mode=0640
    owner={{tsadm_user}}
    group={{tsadm_group}}
    backup=yes
    force=yes


# tsadm user homedir perms
- name: tsadm homedir perms
  file:
    path={{tsadm_homedir}}
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0750
    state=directory


# tsadm user ssh dir
- name: tsadm user ssh dir
  file:
    path={{tsadm_homedir}}/.ssh
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0750
    state=directory


# tsadm user ssh keygen
- name: tsadm user ssh keygen
  command:
    /usr/bin/ssh-keygen -q -t rsa -f {{tsadm_homedir}}/.ssh/id_rsa -N ''
    creates={{tsadm_homedir}}/.ssh/id_rsa


# tsadm user ssh priv key perms
- name: tsadm user ssh priv key perms
  file:
    path={{tsadm_homedir}}/.ssh/id_rsa
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0640
    state=file


# tsadm user ssh pub key perms
- name: tsadm user ssh pub key perms
  file:
    path={{tsadm_homedir}}/.ssh/id_rsa.pub
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0640
    state=file<commit_msg>do not set tsadm uid explicitly and set ssh key comment<commit_after>---
# tsadm user group
- name: tsadm user group
  group: name={{tsadm_group}} state=present
  tags:
    - tsadm-user


# tsadm user
- name: tsadm user
  user:
    name={{tsadm_user}}
    comment=tsadm
    group={{tsadm_group}}
    home={{tsadm_homedir}}
    shell=/bin/bash
    state=present
  tags:
    - tsadm-user


# tsadm user homedir data
- name: tsadm homedir data
  copy:
    src=tsadm.home/
    dest={{tsadm_homedir}}
    mode=0640
    owner={{tsadm_user}}
    group={{tsadm_group}}
    backup=yes
    force=yes
  tags:
    - tsadm-user


# tsadm user homedir perms
- name: tsadm homedir perms
  file:
    path={{tsadm_homedir}}
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0750
    state=directory
  tags:
    - tsadm-user


# tsadm user ssh dir
- name: tsadm user ssh dir
  file:
    path={{tsadm_homedir}}/.ssh
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0750
    state=directory
  tags:
    - tsadm-user


# tsadm user ssh keygen
- name: tsadm user ssh keygen
  command:
    /usr/bin/ssh-keygen -q -t rsa -f {{tsadm_homedir}}/.ssh/id_rsa -N '' -C 'tsadm@{{inventory_hostname}}'
    creates={{tsadm_homedir}}/.ssh/id_rsa
  tags:
    - tsadm-user


# tsadm user ssh priv key perms
- name: tsadm user ssh priv key perms
  file:
    path={{tsadm_homedir}}/.ssh/id_rsa
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0640
    state=file
  tags:
    - tsadm-user


# tsadm user ssh pub key perms
- name: tsadm user ssh pub key perms
  file:
    path={{tsadm_homedir}}/.ssh/id_rsa.pub
    owner={{tsadm_user}}
    group={{tsadm_group}}
    mode=0640
    state=file
  tags:
    - tsadm-user
{'fraction_non_alphanumeric': 0.1291243654822335, 'fraction_numerical': 0.014276649746192893, 'mean_word_length': 2.9265255292652554, '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': '1181110', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1232, 'n_words': 276}