summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/clustering
diff options
context:
space:
mode:
authorWill Thames <will@thames.id.au>2019-07-09 06:47:41 +1000
committerJill R <4121322+jillr@users.noreply.github.com>2019-07-08 13:47:41 -0700
commit446919de6f5fbbcff8706d7eff147595140547fb (patch)
treef2165ae12d5301cc75ca8e836d28a533106c3531 /lib/ansible/modules/clustering
parent105f60cf480572fb5547794cda1f9a05559ae636 (diff)
downloadansible-446919de6f5fbbcff8706d7eff147595140547fb.tar.gz
Add apply to k8s module (#49053)
* Add apply to k8s module Use apply method for updating k8s resources. * Improve apply documentation * k8s: Make apply and merge_type mutually exclusive
Diffstat (limited to 'lib/ansible/modules/clustering')
-rw-r--r--lib/ansible/modules/clustering/k8s/k8s.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ansible/modules/clustering/k8s/k8s.py b/lib/ansible/modules/clustering/k8s/k8s.py
index d50b6f02c6..88a95ac96a 100644
--- a/lib/ansible/modules/clustering/k8s/k8s.py
+++ b/lib/ansible/modules/clustering/k8s/k8s.py
@@ -59,6 +59,7 @@ options:
- If openshift >= 0.6.2, this defaults to C(['strategic-merge', 'merge']), which is ideal for using the same parameters
on resource kinds that combine Custom Resources and built-in resources. For openshift < 0.6.2, the default
is simply C(strategic-merge).
+ - mutually exclusive with C(apply)
choices:
- json
- merge
@@ -130,6 +131,15 @@ options:
the generated hash and append_hash=no)
type: bool
version_added: "2.8"
+ apply:
+ description:
+ - C(apply) compares the desired resource definition with the previously supplied resource definition,
+ ignoring properties that are automatically generated
+ - C(apply) works better with Services than 'force=yes'
+ - C(apply) defaults to True if the openshift library is new enough to support it (0.9.0 or newer)
+ - mutually exclusive with C(merge_type)
+ type: bool
+ version_added: "2.9"
requirements:
- "python >= 2.7"