<commit_before>---

- name: 'install packages for systems management'
  yum: name={{ item }} state=present
  with_items:
   - iptables
   - libselinux-python
   - libsemanage-python
   - ntp
   - openswan
   - policycoreutils-python
   - screen
   - unzip
  tags:
    - common
    
- name: 'disable pgdg94 repo'
  command: yum-config-manager --disable pgdg94
  ignore_errors: yes

- name: 'yum clean all'
  command: yum clean all
  ignore_errors: yes

- name: 'system security patches and updates must be installed and up-to-date'
  yum: name=* state=latest
  tags:
    - common

- name: 'ensure auditing at boot time'
  command: sed -i '/^\tkernel/ s/$/ audit=1/' /etc/grub.conf
  tags:
    - common

# EPEL Yum repository adds Extra Packages for Enterprise Linux
- name: 'add EPEL yum repo'
  yum: name=epel-release state=present
  when: internet is defined

- name: 'set hostname'
  hostname: name={{ inventory_hostname }}
  tags:
    - common

- name: 'build hosts file'
  template: src=hosts.j2 dest=/etc/hosts owner=root group=root mode=0644
  tags:
    - common
     
- name: 'create banner for login'
  copy: 
      src: issue 
      dest: /etc/{{ item }} 
      owner: root 
      group: root 
      mode: "0644" 
      backup: yes
  with_items:
    - issue
    - issue.net
  tags:
    - common<commit_msg>limit for action<commit_after>---

- name: 'install packages for systems management'
  yum: name={{ item }} state=present
  with_items:
   - iptables
   - libselinux-python
   - libsemanage-python
   - ntp
   - openswan
   - policycoreutils-python
   - screen
   - unzip
  tags:
    - common
    
- name: 'disable pgdg94 repo'
  command: yum-config-manager --disable pgdg94
  when: inventory_hostname in groups.dbservers
  ignore_errors: yes
  tags:
    - common

- name: 'yum clean all'
  command: yum clean all
  ignore_errors: yes
  tags:
    - common

- name: 'system security patches and updates must be installed and up-to-date'
  yum: name=* state=latest
  tags:
    - common

- name: 'ensure auditing at boot time'
  command: sed -i '/^\tkernel/ s/$/ audit=1/' /etc/grub.conf
  tags:
    - common

# EPEL Yum repository adds Extra Packages for Enterprise Linux
- name: 'add EPEL yum repo'
  yum: name=epel-release state=present
  when: internet is defined
  tags:
    - common

- name: 'set hostname'
  hostname: name={{ inventory_hostname }}
  tags:
    - common

- name: 'build hosts file'
  template: src=hosts.j2 dest=/etc/hosts owner=root group=root mode=0644
  tags:
    - common
     
- name: 'create banner for login'
  copy: 
      src: issue 
      dest: /etc/{{ item }} 
      owner: root 
      group: root 
      mode: "0644" 
      backup: yes
  with_items:
    - issue
    - issue.net
  tags:
    - common

{'fraction_non_alphanumeric': 0.10714285714285714, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 2.4615384615384617, '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': '3487504', 'n_tokens_mistral': 968, 'n_tokens_neox': 936, 'n_words': 287}