Ansible 2.8.0 has introduction Module option conversion to string but
didn't give any example. I have simple task to set the file descriptor
limits for user
- name: Set file descriptor limits for the node user
pam_limits:
domain: app
limit_type: "{{ item }}"
limit_item: nofile
value: 65535
loop:
- soft
- hard
It was working fine and didn't give any warning until 2.7.x but after
upgrading to ansible 2.8.0, I am getting this warning:
[WARNING]: The value 65535 (type int) in a string field was converted to
'65535' (type string). If this does not look like what you expect, quote
the entire
value to ensure it does not change.
I have changed the value part like this:
* value: !!int 65535*
But still get the same warning. How I can overcome this warning. Thanks
--
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/197d52ca-98ff-4e03-8e40-832b638fdc16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.