Fix paths to properly use FQCN where necessary

This commit is contained in:
Fabian von Feilitzsch
2020-02-17 16:42:32 -05:00
parent 4a29ce08de
commit 75bf82d42c
2 changed files with 6 additions and 5 deletions

View File

@@ -31,7 +31,7 @@
restartPolicy: Always
- name: retrieve the log by providing the deployment
community.kubernetes.k8s_log:
k8s_log:
api_version: apps/v1
kind: Deployment
namespace: k8s-log
@@ -46,7 +46,7 @@
with_items: '{{ deployment_log.log_lines }}'
- name: retrieve the log with a label selector
community.kubernetes.k8s_log:
k8s_log:
namespace: k8s-log
label_selectors:
- 'app=hello-world'
@@ -68,7 +68,7 @@
register: k8s_log_pods
- name: retrieve the log directly with the pod name
community.kubernetes.k8s_log:
k8s_log:
namespace: k8s-log
name: '{{ k8s_log_pods.resources.0.metadata.name }}'
register: pod_log