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

View File

@@ -67,7 +67,7 @@ options:
required: no
extends_documentation_fragment:
- k8s_auth_options
- community.kubernetes.k8s_auth_options
requirements:
- "python >= 2.7"
@@ -123,8 +123,9 @@ log_lines:
'''
from ansible.module_utils.k8s.common import KubernetesAnsibleModule, AUTH_ARG_SPEC
import copy
from ansible_collections.community.kubernetes.plugins.module_utils.common import KubernetesAnsibleModule
from ansible_collections.community.kubernetes.plugins.module_utils.common import AUTH_ARG_SPEC
class KubernetesLogModule(KubernetesAnsibleModule):