<commit_before>---
# tasks for rsync-backup-configure

- name: "Be sure to have installed rsync"
  apt:
   name: rsync
   state: latest
   install_recommends: no

- name: "Create the 'rsync-backup' user"
  user:
   name: rsync-backup

- name: "Be sure to add the idpcloud-key to root authorized keys"
  authorized_key:
   user: rsync-backup
   state: present
   key: "{{ lookup('file', files_dir +'/'+ fqdn +'/idpcloud_garr/rsync-backup/'+ idpcloud_garr['rsync_backup_ssh_pub_key'] ) }}"

- name: "Change the owner of '/var/local/backups' to 'rsync-backup' to be able to retrieve backups from rsnapshot server"
  file:
   path: /var/local/backups
   owner: rsync-backup
   recurse: yes
   mode: 0750
<commit_msg>fixed rsync permissions<commit_after>---
# tasks for rsync-backup-configure

- name: "Be sure to have installed rsync"
  apt:
   name: rsync
   state: latest
   install_recommends: no

- name: "Create the 'rsync-backup' user"
  user:
   name: rsync-backup

- name: "Be sure to add the idpcloud-key to root authorized keys"
  authorized_key:
   user: rsync-backup
   state: present
   key: "{{ lookup('file', files_dir +'/'+ fqdn +'/idpcloud_garr/rsync-backup/'+ idpcloud_garr['rsync_backup_ssh_pub_key'] ) }}"

- name: "Change the owner of '/var/local/backups' to 'rsync-backup' to be able to retrieve backups from rsnapshot server"
  file:
   path: /var/local/backups
   owner: rsync-backup
   mode: 0750

{'fraction_non_alphanumeric': 0.12059238363892807, 'fraction_numerical': 0.005641748942172073, 'mean_word_length': 3.6372549019607843, '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': '2886278', 'n_tokens_mistral': 516, 'n_tokens_neox': 506, 'n_words': 148}