Updated state pamd module

I have similar problem to the reported on this link https://forum.ansible.com/t/help-with-pamd-module/28698 .
The updated state of the pamd ansible module is not replacing the policy when it matches type, control and module_path but instead create one new.
Could you please give me any suggestion to solve the inconvenient?