Declarative Changes
Object Identification
State Behavior for Modules
present:
Looks for the object:
- If it does not exist, create it.
- If it already exists, it will function in the same way as the update state.
update:
- Updates the object if no unchangeable properties are modified.
- Replaces the object if unchangeable properties are modified, creating a new object and removing the old one.
- If `allow_replace` is set to false, the module will fail instead of replacing the object to avoid resource loss.
absent:
- Looks for the object:
- If it does not exist, the operation is successful.
- If it exists, delete it.The allow_replace parameter
List of Parameters Triggering Resource Replacement
Module
Replace if Changed
Replace if Set
List of Parameter Changes
Last updated
Was this helpful?