mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
14 lines
307 B
YAML
14 lines
307 B
YAML
|
|
---
|
||
|
|
#Fetching the details of the application pod
|
||
|
|
- name: Getting the {{ application_name }} POD name
|
||
|
|
k8s_facts:
|
||
|
|
kind: Pod
|
||
|
|
namespace: "{{ app_ns }}"
|
||
|
|
label_selectors:
|
||
|
|
- "{{ app_label }}"
|
||
|
|
register: pod_name
|
||
|
|
|
||
|
|
- debug:
|
||
|
|
msg: "{{ pod_name | json_query('resources[*].metadata.name') }}"
|
||
|
|
|