mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-28 02:14:41 +00:00
k8s_info: Update example using vars (#156)
Fixes: #151 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -96,6 +96,14 @@ EXAMPLES = r'''
|
|||||||
- app = web
|
- app = web
|
||||||
- tier in (dev, test)
|
- tier in (dev, test)
|
||||||
|
|
||||||
|
- name: Using vars while using label_selectors
|
||||||
|
community.kubernetes.k8s_info:
|
||||||
|
kind: Pod
|
||||||
|
label_selectors:
|
||||||
|
- "app = {{ app_label_web }}"
|
||||||
|
vars:
|
||||||
|
app_label_web: web
|
||||||
|
|
||||||
- name: Search for all running pods
|
- name: Search for all running pods
|
||||||
community.kubernetes.k8s_info:
|
community.kubernetes.k8s_info:
|
||||||
kind: Pod
|
kind: Pod
|
||||||
|
|||||||
Reference in New Issue
Block a user