<commit_before>- name: Create the sources for the freeipa client
  template: 
    src: roles/client/template/freeipa.list.j2
    dest: /etc/apt/sources.list.d/freeipa.list
    owner: root
    group: root
    mode: 0644
- name: Create folder for storing certificate database
  file: 
    path: /etc/pki/nssdb
    state: directory
- name: Create folder for ipa
  file: 
    path: /var/run/ipa
    state: directory
- name: Install prequistes packages
  apt:
    name: software-properties-common
    state: present
- name: install the package signature verification key
  apt_key: 
    url: http://apt.numeezy.fr/numeezy.asc
    state: present
- name: Set server host name to a fully qualified domain name
  template:
    src: roles/client/template/hostname.j2
    dest: /etc/hostname
    owner: root
    group: root
    mode: 0644
- name: Install vim
  apt:
    update_cache: yes
    name: vim
    state: present
- name: Install nscd
  apt: 
    update_cache: yes
    name: nscd
    state: present
- name: Install freeipa client
  apt: 
    update_cache: yes
    name: freeipa-client
    state: present
- name: Change SSH to allow password authentication
  replace: 
    dest: /etc/ssh/sshd_config
    regexp: 'PasswordAuthentication no'
    replace: 'PasswordAuthentication yes'
    backup: yes
- name: Run the ipa-client-install command
  ignore_errors: yes
  command: ipa-client-install -U --domain={{ domain }} --server={{ server_alias }}.{{ domain }} --realm={{ realm }} --password={{ principal_user_password }} --principal={{ principal_user }} --mkhomedir --no-dns-sshfp --hostname={{ inventory_hostname }} --no-ntp
- name: restart server
  command: "shutdown -r now"
  poll: 0
  ignore_errors: yes
  <commit_msg>Included a test and lineinfile for the pam_mkhomedir.so<commit_after>- name: Create the sources for the freeipa client
  template: 
    src: roles/client/template/freeipa.list.j2
    dest: /etc/apt/sources.list.d/freeipa.list
    owner: root
    group: root
    mode: 0644
- name: Create folder for storing certificate database
  file: 
    path: /etc/pki/nssdb
    state: directory
- name: Create folder for ipa
  file: 
    path: /var/run/ipa
    state: directory
- name: Install prequistes packages
  apt:
    name: software-properties-common
    state: present
- name: install the package signature verification key
  apt_key: 
    url: http://apt.numeezy.fr/numeezy.asc
    state: present
- name: Set server host name to a fully qualified domain name
  template:
    src: roles/client/template/hostname.j2
    dest: /etc/hostname
    owner: root
    group: root
    mode: 0644
- name: Install vim
  apt:
    update_cache: yes
    name: vim
    state: present
- name: Install nscd
  apt: 
    update_cache: yes
    name: nscd
    state: present
- name: Install freeipa client
  apt: 
    update_cache: yes
    name: freeipa-client
    state: present
- name: Change SSH to allow password authentication
  replace: 
    dest: /etc/ssh/sshd_config
    regexp: 'PasswordAuthentication no'
    replace: 'PasswordAuthentication yes'
    backup: yes
- name: Test for pam_mkhomedir.so
  shell: grep "pam_mkhomedir.so" /etc/pam.d/common-session
  register: test_grep
  ignore_errors: yes
- name: Enable auto creation of LDAP user folders
  lineinfile: 
    dest: /etc/pam.d/common-session
    line: "session required pam_mkhomedir.so"
  when: test_grep.stdout == ""
- name: Run the ipa-client-install command
  ignore_errors: yes
  command: ipa-client-install -U --domain={{ domain }} --server={{ server_alias }}.{{ domain }} --realm={{ realm }} --password={{ <PASSWORD> }} --principal={{ principal_user }} --mkhomedir --no-dns-sshfp --hostname={{ inventory_hostname }} --no-ntp
  
{'fraction_non_alphanumeric': 0.10400866738894908, 'fraction_numerical': 0.005687973997833153, 'mean_word_length': 3.044906900328587, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2983815', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1190, 'n_words': 367}