<commit_before>---

- name: "users: Debug"
  vars:
    msg: |
      freebsd_users
      {{ freebsd_users|to_nice_yaml }}
      freebsd_users_groups
      {{ freebsd_users_groups|to_nice_yaml }}
  debug:
    msg: "{{ msg.split('\n') }}"
  when: fp_debug|bool

- name: "users: Manage user accounts"
  user:
    name: "{{ item.name }}"
    shell: "{{ item.shell|default(omit) }}"
    password: "{{ item.password|default(omit) }}"
    update_password: "{{ item.update_password|default(omit) }}"
    comment: "{{ item.comment|default(omit) }}"
    create_home: "{{ item.create_home|default(omit) }}"
    expires: "{{ item.expires|default(omit) }}"
    force: "{{ item.force|default(omit) }}"
    generate_ssh_key: "{{ item.generate_ssh_key|default(omit) }}"
    group: "{{ item.group|default(omit) }}"
    home: "{{ item.home|default(omit) }}"
    local: "{{ item.local|default(omit) }}"
    login_class: "{{ item.login_class|default(omit) }}"
    move_home: "{{ item.move_home|default(omit) }}"
    non_unique: "{{ item.non_unique|default(omit) }}"
    remove: "{{ item.remove|default(omit) }}"
    seuser: "{{  item.seuser|default(omit) }}"
    skeleton: "{{ item.skeleton|default(omit) }}"
    ssh_key_bits: "{{ item.ssh_key_bits|default(omit) }}"
    ssh_key_comment: "{{ item.ssh_key_comment|default(omit) }}"
    ssh_key_file: "{{ item.ssh_key_file|default(omit) }}"
    ssh_key_passpharse: "{{ item.ssh_key_passphase|default(omit) }}"
    ssh_key_type: "{{ item.ssh_key_type|default(omit) }}"
    state: "{{ item.state|default(omit) }}"
    system: "{{ item.system|default(omit) }}"
    uid: "{{ item.uid|default(omit) }}"
  loop: "{{ freebsd_users }}"
  loop_control:
    label: "{{ item.name }}"

- name: "users: Add users to additional groups"
  user:
    name: "{{ item.name }}"
    groups: "{{ item.groups }}"
    append: "{{ item.append|default(true) }}"
  loop: "{{ freebsd_users_groups }}"

# EOF
...<commit_msg>Added default filters to pass inclusion withou the variable defined.<commit_after>---

- name: "users: Debug"
  vars:
    msg: |
      freebsd_users
      {{ freebsd_users|default(['UNDEFINED'])|to_nice_yaml }}
      freebsd_users_groups
      {{ freebsd_users_groups|default(['UNDEFINED'])|to_nice_yaml }}
  debug:
    msg: "{{ msg.split('\n') }}"
  when: fp_debug|bool

- name: "users: Manage user accounts"
  user:
    name: "{{ item.name }}"
    shell: "{{ item.shell|default(omit) }}"
    password: "{{ item.password|default(omit) }}"
    update_password: "{{ item.update_password|default(omit) }}"
    comment: "{{ item.comment|default(omit) }}"
    create_home: "{{ item.create_home|default(omit) }}"
    expires: "{{ item.expires|default(omit) }}"
    force: "{{ item.force|default(omit) }}"
    generate_ssh_key: "{{ item.generate_ssh_key|default(omit) }}"
    group: "{{ item.group|default(omit) }}"
    home: "{{ item.home|default(omit) }}"
    local: "{{ item.local|default(omit) }}"
    login_class: "{{ item.login_class|default(omit) }}"
    move_home: "{{ item.move_home|default(omit) }}"
    non_unique: "{{ item.non_unique|default(omit) }}"
    remove: "{{ item.remove|default(omit) }}"
    seuser: "{{  item.seuser|default(omit) }}"
    skeleton: "{{ item.skeleton|default(omit) }}"
    ssh_key_bits: "{{ item.ssh_key_bits|default(omit) }}"
    ssh_key_comment: "{{ item.ssh_key_comment|default(omit) }}"
    ssh_key_file: "{{ item.ssh_key_file|default(omit) }}"
    ssh_key_passpharse: "{{ item.ssh_key_passphase|default(omit) }}"
    ssh_key_type: "{{ item.ssh_key_type|default(omit) }}"
    state: "{{ item.state|default(omit) }}"
    system: "{{ item.system|default(omit) }}"
    uid: "{{ item.uid|default(omit) }}"
  loop: "{{ freebsd_users|default([]) }}"
  loop_control:
    label: "{{ item.name }}"

- name: "users: Add users to additional groups"
  user:
    name: "{{ item.name }}"
    groups: "{{ item.groups }}"
    append: "{{ item.append|default(true) }}"
  loop: "{{ freebsd_users_groups|default([]) }}"

# EOF
...
{'fraction_non_alphanumeric': 0.20231796422272613, 'fraction_numerical': 0.0, 'mean_word_length': 4.096277278562259, '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': '2078535', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1456, 'n_words': 199}