diff --git a/docs/kubernetes.core.k8s_module.rst b/docs/kubernetes.core.k8s_module.rst index 43259876..1fa790ea 100644 --- a/docs/kubernetes.core.k8s_module.rst +++ b/docs/kubernetes.core.k8s_module.rst @@ -813,7 +813,7 @@ Parameters -
Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.
+
Determines if an object should be created, patched, or deleted. When set to present, an object will be created if it does not already exist, and an existing object will be patched if its attributes differ from those specified using resource_definition or src. If set to absent, an existing object will be deleted.
patched state is an existing resource that has a given patch applied. If the resource doesn't exist, silently skip it (do not raise an error).
diff --git a/docs/kubernetes.core.k8s_service_module.rst b/docs/kubernetes.core.k8s_service_module.rst index 26219fe8..743154d3 100644 --- a/docs/kubernetes.core.k8s_service_module.rst +++ b/docs/kubernetes.core.k8s_service_module.rst @@ -509,7 +509,7 @@ Parameters -
Determines if an object should be created, patched, or deleted. When set to present, an object will be created, if it does not already exist. If set to absent, an existing object will be deleted. If set to present, an existing object will be patched, if its attributes differ from those specified using resource_definition or src.
+
Determines if an object should be created, patched, or deleted. When set to present, an object will be created if it does not already exist, and an existing object will be patched if its attributes differ from those specified using resource_definition or src. If set to absent, an existing object will be deleted.
diff --git a/plugins/doc_fragments/k8s_state_options.py b/plugins/doc_fragments/k8s_state_options.py index e01a9aaf..69798ef0 100644 --- a/plugins/doc_fragments/k8s_state_options.py +++ b/plugins/doc_fragments/k8s_state_options.py @@ -16,9 +16,8 @@ options: state: description: - Determines if an object should be created, patched, or deleted. When set to C(present), an object will be - created, if it does not already exist. If set to C(absent), an existing object will be deleted. If set to - C(present), an existing object will be patched, if its attributes differ from those specified using - I(resource_definition) or I(src). + created if it does not already exist, and an existing object will be patched if its attributes differ from + those specified using I(resource_definition) or I(src). If set to C(absent), an existing object will be deleted. type: str default: present choices: [ absent, present ] diff --git a/plugins/modules/k8s.py b/plugins/modules/k8s.py index b34f59dc..0af0242f 100644 --- a/plugins/modules/k8s.py +++ b/plugins/modules/k8s.py @@ -40,9 +40,8 @@ options: state: description: - Determines if an object should be created, patched, or deleted. When set to C(present), an object will be - created, if it does not already exist. If set to C(absent), an existing object will be deleted. If set to - C(present), an existing object will be patched, if its attributes differ from those specified using - I(resource_definition) or I(src). + created if it does not already exist, and an existing object will be patched if its attributes differ from + those specified using I(resource_definition) or I(src). If set to C(absent), an existing object will be deleted. - C(patched) state is an existing resource that has a given patch applied. If the resource doesn't exist, silently skip it (do not raise an error). type: str default: present