Skip to content

Commit

Permalink
Fixing_max_open_files_for_open_and_indexies_DS389
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Jostak authored and Matej Jostak committed Nov 11, 2024
1 parent 5607c5e commit d365e73
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tasks/perun_openldap_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@


- name: "set up limits for max open files for LS instance and display it"
when: perun_ldap_max_open_files_limits
block:
- name: "set soft open file limit for openldap user"
when: perun_ldap_max_open_files_limits
# when: perun_ldap_max_open_files_limits
community.general.pam_limits:
domain: openldap
limit_type: soft
Expand All @@ -145,7 +146,7 @@
register: soft_limit

- name: "set hard open file limit for openldap user"
when: perun_ldap_max_open_files_limits
# when: perun_ldap_max_open_files_limits
community.general.pam_limits:
domain: openldap
limit_type: hard
Expand All @@ -154,7 +155,7 @@
register: hard_limit

- name: "set system-wide open files limit"
when: perun_ldap_max_open_files_limits
# when: perun_ldap_max_open_files_limits
ansible.posix.sysctl:
name: fs.file-max
value: "{{ perun_ldap_max_open_system_files_value }}"
Expand All @@ -168,7 +169,7 @@
mode: '0755'

- name: "add LimitNOFILE to systemd override configuration for slapd"
when: parun_ldap_max_open_files_limits
# when: parun_ldap_max_open_files_limits
blockinfile:
path: /etc/systemd/system/slapd.service.d/override.conf
create: yes
Expand Down

0 comments on commit d365e73

Please sign in to comment.