<commit_before>- name: "Add FTP user"
  lineinfile:
    dest: /etc/master.passwd
    line: "ftp:*:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:0:Anonymous FTP Admin:/var/ftp:/sbin/nologin"
    regexp: "^ftp:"
    insertafter: "^man:"
  notify: pwd_mkdb

- name: "Add FTP group"
  lineinfile:
    dest: /etc/group
    line: "ftp:*:14:"
    regexp: "^ftp:"
    insertafter: "^games:"
  notify: pwd_mkdb

# Workaround for "pw: user '...' disappeared during update"
- name: "Flush handlers"
  meta: flush_handlers

- name: "Create /var/ftp"
  file:
    path: /var/ftp
    state: directory
    owner: ftp
    group: ftp
    mode: "0755"
<commit_msg>Add 'ftp' to ftpusers.<commit_after>- name: "Add FTP group"
  lineinfile:
    dest: /etc/group
    line: "ftp:*:14:"
    regexp: "^ftp:"
    insertafter: "^games:"
  notify: pwd_mkdb

- name: "Add FTP user (master.passwd)"
  lineinfile:
    dest: /etc/master.passwd
    line: "ftp:*:fd00:a516:7c1b:17cd:6d81:2137:bd2a:2c5b:0:Anonymous FTP Admin:/var/ftp:/sbin/nologin"
    regexp: "^ftp:"
    insertafter: "^man:"
  notify: pwd_mkdb

- name: "Add FTP user (ftpusers)"
  lineinfile:
    dest: /etc/ftpusers
    line: "ftp"
    regexp: "^ftp$"
    insertafter: "^man$"

# Workaround for "pw: user '...' disappeared during update"
- name: "Flush handlers"
  meta: flush_handlers

- name: "Create /var/ftp"
  file:
    path: /var/ftp
    state: directory
    owner: ftp
    group: ftp
    mode: "0755"

{'fraction_non_alphanumeric': 0.1593597773138483, 'fraction_numerical': 0.03618649965205289, 'mean_word_length': 3.1560693641618496, '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': '3074824', 'n_tokens_mistral': 652, 'n_tokens_neox': 580, 'n_words': 136}