| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- - name: Setup nofile for system
- become: true
- ansible.builtin.lineinfile:
- path: /etc/systemd/system.conf
- regexp: "^DefaultLimitNOFILE="
- line: DefaultLimitNOFILE=2097152
- backup: true
- - name: Setup nproc for system
- become: true
- ansible.builtin.lineinfile:
- path: /etc/systemd/system.conf
- regexp: "^DefaultLimitNPROC"
- line: DefaultLimitNPROC=524288
- backup: true
- - name: Setup nofile for user
- become: true
- ansible.builtin.lineinfile:
- path: /etc/systemd/user.conf
- regexp: "^DefaultLimitNOFILE="
- line: DefaultLimitNOFILE=1048576
- backup: true
- - name: Setup nproc for user
- become: true
- ansible.builtin.lineinfile:
- path: /etc/systemd/user.conf
- regexp: "^DefaultLimitNPROC"
- line: DefaultLimitNPROC=262144
- backup: true
- - name: Set user level open file limits for root
- become: true
- ansible.builtin.lineinfile:
- path: /etc/security/limits.conf
- line: root soft nofile 10240
- backup: true
- - name: Set user level open file limits for {{ ansible_user }}
- become: true
- ansible.builtin.lineinfile:
- path: /etc/security/limits.conf
- line: "{{ ansible_user }} soft nofile 10240"
- backup: true
- # https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ladbi/changing-kernel-parameter-values.html#GUID-FB0CC366-61C9-4AA2-9BE7-233EB6810A31
- - name: Setup file max
- become: true
- ansible.builtin.lineinfile:
- path: "/etc/sysctl.d/100-palm.conf"
- state: present
- line: "fs.file-max = 6815744"
- create: true
- - name: Setup file max
- become: true
- ansible.builtin.lineinfile:
- path: "/etc/sysctl.d/100-palm.conf"
- state: present
- line: "fs.inotify.max_user_watches = 512000"
- create: true
- - name: Setup vm max map count
- become: true
- ansible.builtin.lineinfile:
- path: "/etc/sysctl.d/100-palm.conf"
- state: present
- line: "vm.max_map_count = 262144"
- create: true
- - name: Setup vm over commit memory
- become: true
- ansible.builtin.lineinfile:
- path: "/etc/sysctl.d/100-palm.conf"
- state: present
- line: "vm.overcommit_memory = 1"
- create: true
|