I'd suggest a different approach by using a regexp which will let you alter
the exiting limit in the future:
- name: sets nofile hard limits
lineinfile: >
dest=/etc/security/limits.conf
line="* hard nofile 65536"
regexp="^\\*\ +hard\ +nofile\ +[0-9]+$"
state="present"
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7fea5260-8aa0-4157-ab9b-986af074f71d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.