<commit_before>- name: Create dev group
  group: name=dev gid=1000

- name: Create dev user
  user: name=dev
    uid=1000
    home=/home/dev
    group=dev
    shell=/bin/zsh

- name: Create shared directory
  file: path=/var/shared owner=dev group=dev mode=0755 state=directory

- name: Create directory placeholder (need by docker volume)
  file: path=/var/shared/placeholder owner=dev group=dev state=touch

- name: Get dot files
  command: git clone {{ dotfiles_git }} /home/dev/.dotfiles

- name: Link files from the shared directory
  file: src=/var/shared/.ssh dest=/home/dev/.ssh state=link force=yes
  file: src=/var/shared/.gitconfig dest=/home/dev/.gitconfig state=link force=yes
  file: src=/var/shared/src dest=/home/dev/src state=link force=yes

- name: Fix owner
  command: chown dev.dev -R /home/dev

- name: Sudo rights
  lineinfile: 
    'dest=/etc/sudoers create=yes state=present regexp="docker$"
    line="%sudo ALL=(ALL) NOPASSWD: ALL"'<commit_msg>Adds rights to dev user<commit_after>- name: Create dev group
  group: name=dev gid=1000

- name: Create dev user
  user: name=dev
    uid=1000
    home=/home/dev
    group=dev
    groups=dev,users
    shell=/bin/zsh

- name: Create shared directory
  file: path=/var/shared owner=dev group=dev mode=0755 state=directory

- name: Create directory placeholder (need by docker volume)
  file: path=/var/shared/placeholder owner=dev group=dev state=touch

- name: Get dot files
  command: git clone {{ dotfiles_git }} /home/dev/.dotfiles

- name: Link files from the shared directory
  file: src=/var/shared/.ssh dest=/home/dev/.ssh state=link force=yes
  file: src=/var/shared/.gitconfig dest=/home/dev/.gitconfig state=link force=yes
  file: src=/var/shared/src dest=/home/dev/src state=link force=yes

- name: Fix owner
  command: chown dev.dev -R /home/dev

- name: Sudo rights for all
  lineinfile: 
    'dest=/etc/sudoers create=yes state=present regexp="sudo ALL"
    line="%sudo ALL=(ALL) NOPASSWD: ALL"'
{'fraction_non_alphanumeric': 0.12285136501516683, 'fraction_numerical': 0.012133468149646108, 'mean_word_length': 3.7686746987951807, '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': '1763936', 'n_tokens_mistral': 699, 'n_tokens_neox': 642, 'n_words': 191}