monitoring/playbooks/ulimit/run_setup.yaml
ipatini 8212cd655d EMS: Applied changes from main repo
Change-Id: I91c7cd475c0a1139f73ff76b71b90ab3aae1445b
2024-03-20 13:46:22 +00:00

14 lines
445 B
YAML

- name: Update containers.conf configuration
hosts: all
tasks:
- name: Add default_ulimits configuration to containers.conf
ansible.builtin.blockinfile:
path: "{{ ansible_user_dir }}/.config/containers/containers.conf"
block: |
[containers]
default_ulimits = [
"nofile=5000:10000",
]
marker: "# {mark} ANSIBLE MANAGED BLOCK for default_ulimits"
create: yes