-
Notifications
You must be signed in to change notification settings - Fork 34
Clarification on present state behavior #57
Comments
The modules are expected to behave in the former manner, which is standard Ansible behavior. For example, the apt module doesn't remove packages that weren't specified, and the file module doesn't delete attributes of an existing file that weren't specified. |
Ok, I see. |
Correct, the "param_absent" was built-in to allow removing entries from an object partially. You would need to retrieve what is currently there and diff against what you would like to be configured and then remove the extra configuration. |
Right. I guess I'll have to deal with it playbook side at this time then. |
Is the intended behavior of the “present” state to only add/update parameters passed to the module and leave all other existing parameters untouched or are the parameters passed meant to be represent the complete “desired state” of the object, meaning that existing object parameters not passed to the module should be removed?
I expected the second but my actual results and reading of the code lead me to believe it’s the first...
The text was updated successfully, but these errors were encountered: