<commit_before>---
- name: Install jenkins specific system packages
  apt:
    name: '{{ item }}'
    state: present
    update_cache: yes
  with_items: '{{ jenkins_common_debian_pkgs }}'
  tags:
    - jenkins
    - install
    - install:system-requirements

- name: Install specific versions of python
  apt:
    name: '{{ item }}'
    state: present
    update_cache: yes
  with_items: '{{ jenkins_common_python_versions }}'
  tags:
    - jenkins
    - install
    - install:system-requirements

- name: Create jenkins group with specified gid
  group:
    name: '{{ jenkins_common_group }}'
    gid: '{{ jenkins_common_group_gid }}'
    state: present
  when: jenkins_common_group_gid is defined
  tags:
    - install
    - install:system-requirements

- name: Create jenkins group
  group:
    name: '{{ jenkins_common_group }}'
    state: present
  when: jenkins_common_group_gid is not defined or not jenkins_common_group_gid
  tags:
    - install
    - install:system-requirements

- name: Create the jenkins user with specified uid and add to the group
  user:
    name: '{{ jenkins_common_user }}'
    append: yes
    uid: '{{ jenkins_common_user_uid }}'
    groups: '{{ jenkins_common_group }}'
  when: jenkins_common_user_uid is defined
  tags:
    - install
    - install:system-requirements

- name: Create the jenkins user and add to the group
  user:
    name: '{{ jenkins_common_user }}'
    append: yes
    groups: '{{ jenkins_common_group }}'
  when: jenkins_common_user_uid is not defined or not jenkins_common_user_uid
  tags:
    - install
    - install:system-requirements

- name: Create jenkins home and set ownership
  file:
    path: "{{ jenkins_common_home }}"
    state: directory
    owner: "{{ jenkins_common_user }}"
    group: "{{ jenkins_common_group }}"
    recurse: true
    mode: 0700
  tags:
    - install
    - install:system-requirements

- name: Create /var/run/jenkins
  file:
    path: "/var/run/jenkins"
    state: directory
    owner: "{{ jenkins_common_user }}"
    group: "{{ jenkins_common_group }}"
  tags:
    - install
    - install:system-requirements

- name: Delete any existing jenkins-configuration folders to avoid unwanted configuration
  file:
    path: '{{ item }}'
    owner: '{{ jenkins_common_user }}'
    group: '{{ jenkins_common_group }}'
    state: absent
  with_items:
    - '{{ jenkins_common_home }}/init.groovy.d'
    - '{{ jenkins_common_config_path }}'
  tags:<commit_msg>Remove recurse<commit_after>---
- name: Install jenkins specific system packages
  apt:
    name: '{{ item }}'
    state: present
    update_cache: yes
  with_items: '{{ jenkins_common_debian_pkgs }}'
  tags:
    - jenkins
    - install
    - install:system-requirements

- name: Install specific versions of python
  apt:
    name: '{{ item }}'
    state: present
    update_cache: yes
  with_items: '{{ jenkins_common_python_versions }}'
  tags:
    - jenkins
    - install
    - install:system-requirements

- name: Create jenkins group with specified gid
  group:
    name: '{{ jenkins_common_group }}'
    gid: '{{ jenkins_common_group_gid }}'
    state: present
  when: jenkins_common_group_gid is defined
  tags:
    - install
    - install:system-requirements

- name: Create jenkins group
  group:
    name: '{{ jenkins_common_group }}'
    state: present
  when: jenkins_common_group_gid is not defined or not jenkins_common_group_gid
  tags:
    - install
    - install:system-requirements

- name: Create the jenkins user with specified uid and add to the group
  user:
    name: '{{ jenkins_common_user }}'
    append: yes
    uid: '{{ jenkins_common_user_uid }}'
    groups: '{{ jenkins_common_group }}'
  when: jenkins_common_user_uid is defined
  tags:
    - install
    - install:system-requirements

- name: Create the jenkins user and add to the group
  user:
    name: '{{ jenkins_common_user }}'
    append: yes
    groups: '{{ jenkins_common_group }}'
  when: jenkins_common_user_uid is not defined or not jenkins_common_user_uid
  tags:
    - install
    - install:system-requirements

- name: Create jenkins home and set ownership
  file:
    path: "{{ jenkins_common_home }}"
    state: directory
    owner: "{{ jenkins_common_user }}"
    group: "{{ jenkins_common_group }}"
    mode: 0700
  tags:
    - install
    - install:system-requirements

- name: Create /var/run/jenkins
  file:
    path: "/var/run/jenkins"
    state: directory
    owner: "{{ jenkins_common_user }}"
    group: "{{ jenkins_common_group }}"
  tags:
    - install
    - install:system-requirements

- name: Delete any existing jenkins-configuration folders to avoid unwanted configuration
  file:
    path: '{{ item }}'
    owner: '{{ jenkins_common_user }}'
    group: '{{ jenkins_common_group }}'
    state: absent
  with_items:
    - '{{ jenkins_common_home }}/init.groovy.d'
    - '{{ jenkins_common_config_path }}'
  tags:
{'fraction_non_alphanumeric': 0.10695955655922808, 'fraction_numerical': 0.001642373229316362, 'mean_word_length': 3.171232876712329, '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': '1206414', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1649, 'n_words': 396}