---
#
# Setting ulimits
#

- name: setting application ulimits
  pam_limits:
    domain: '{{ item.domain }}'
    limit_type: '{{ item.type }}'
    limit_item: '{{ item.item }}'
    value: '{{ item.value }}'
    dest: '{{ tomcat_limits_file }}'
  with_items: '{{ tomcat_limits_conf }}'

---
#
# Setting ulimits
#

- name: setting application ulimits
  pam_limits:
    domain: '{{ item.domain }}'
    limit_type: '{{ item.type }}'
    limit_item: '{{ item.item }}'
    value: '{{ item.value }}'
    dest: '{{ tomcat_limits_file }}.conf'
  with_items: '{{ tomcat_limits_conf }}'

Add limits.d missing .conf extension It broke the apply of definied limits so this the fix for it.
Add limits.d missing .conf extension
It broke the apply of definied limits so this the fix for it.
