update module arguments to allow resource_definition to be a string (#40730)

This commit is contained in:
Fabian von Feilitzsch 2018-06-29 10:21:47 -04:00 committed by Adam Miller
commit d75e49693b
4 changed files with 15 additions and 9 deletions

View file

@ -99,12 +99,12 @@ EXAMPLES = '''
- name: Read definition file from the Ansible controller file system
k8s:
state: present
definition: "{{ lookup('file', '/testing/deployment.yml') | from_yaml }}"
definition: "{{ lookup('file', '/testing/deployment.yml') }}"
- name: Read definition file from the Ansible controller file system after Jinja templating
k8s:
state: present
definition: "{{ lookup('template', '/testing/deployment.yml') | from_yaml }}"
definition: "{{ lookup('template', '/testing/deployment.yml') }}"
'''
RETURN = '''
@ -135,8 +135,8 @@ result:
returned: success
type: complex
items:
description: Returned only when the I(kind) is a List type resource. Contains a set of objects.
returned: when resource is a List
description: Returned only when multiple yaml documents are passed to src or resource_definition
returned: when resource_definition or src contains list of objects
type: list
'''