mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-04-05 02:03:02 +00:00
k8s: document multi template feature (#209)
k8s: document multi template feature SUMMARY template parameter allows user to provide multiple template files. Fixes: #207 Signed-off-by: Abhijeet Kasurde akasurde@redhat.com ISSUE TYPE Docs Pull Request COMPONENT NAME plugins/modules/k8s.py Reviewed-by: None <None> Reviewed-by: Mike Graves <mgraves@redhat.com> Reviewed-by: None <None>
This commit is contained in:
@@ -108,6 +108,7 @@ options:
|
||||
description:
|
||||
- Provide a valid YAML template definition file for an object when creating or updating.
|
||||
- Value can be provided as string or dictionary.
|
||||
- The parameter accepts multiple template files. Added in version 2.0.0.
|
||||
- Mutually exclusive with C(src) and C(resource_definition).
|
||||
- Template files needs to be present on the Ansible Controller's file system.
|
||||
- Additional parameters can be specified using dictionary.
|
||||
@@ -214,6 +215,15 @@ EXAMPLES = r'''
|
||||
variable_start_string: '[['
|
||||
variable_end_string: ']]'
|
||||
|
||||
- name: Read multiple definition template file from the Ansible controller file system
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
template:
|
||||
- path: '/testing/deployment_one.j2'
|
||||
- path: '/testing/deployment_two.j2'
|
||||
variable_start_string: '[['
|
||||
variable_end_string: ']]'
|
||||
|
||||
- name: fail on validation errors
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
|
||||
Reference in New Issue
Block a user