cloudera.cloud.recipe_info module – Gather information about CDP recipes
Note
This module is part of the cloudera.cloud collection (version 2.5.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cloudera.cloud.recipe_info
.
Synopsis
Gather information about CDP recipes.
A recipe is a script that runs on nodes of Data Hub, Datalake, or FreeIPA nodes.
See the Cloudera documentation on recipes for details.
Requirements
The below requirements are needed on the host that executes this module.
cdpy
Parameters
Parameter |
Comments |
---|---|
Specify the Cloudera Data Platform endpoint region. Default: |
|
Capture the CDP SDK debug log. Choices:
|
|
If a name is provided, that recipe will be described. If no name provided, all recipes will be listed. |
|
If provided, the CDP SDK will use this value as its profile. |
|
Flag dictating if recipe content is returned Choices:
|
|
Verify the TLS certificates for the CDP endpoint. Choices:
|
Examples
# Note: These examples do not set authentication details.
- name: List all recipes
cloudera.cloud.recipe_info:
- name: Gather information about a named recipe
cloudera.cloud.recipe_info:
name: example-recipe
- name: Gather detailed information about a named recipe
cloudera.cloud.recipe_info:
name: example-recipe
return_content: yes
register: my_recipe
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The information about the named recipe or recipes Returned: on success |
|
The CRN of the creator of the recipe. Returned: when supported |
|
The CRN of the recipe. Returned: always |
|
The description of the recipe. Returned: when supported |
|
The content of the recipe. Returned: when supported |
|
The name of the recipe. Returned: always |
|
The type of recipe. Supported values are: Returned: when supported |
|
Returns the captured CDP SDK log. Returned: when supported |
|
Returns a list of each line of the captured CDP SDK log. Returned: when supported |