orphan: |
---|
Note
This module is part of the morpheus.core collection (version 0.7.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 morpheus.core
.
To use it in a playbook, specify: morpheus.core.key_pair_info
.
.. rst-class:: ansible-version-added
New in morpheus.core 0.6.0
- Gathers Information of Key Pairs.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
Parameter | Comments |
---|---|
Filter Key Pairs with or without a stored Private Key. .. rst-class:: ansible-option-line |
|
Return specific object by id. |
|
Filter by name. |
|
Treat the name parameter as a regular expression. .. rst-class:: ansible-option-line |
.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}
Attribute | Support | Description |
---|---|---|
:ansible-attribute-support-label:`Support: \ ` :ansible-attribute-support-na:`N/A` Not Required, Module does not make changes. |
Can run in check_mode and return changed status prediction without modifying target |
|
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
||
Target OS/families that can be operated against |
- name: Get Specific Key by Id
morpheus.core.key_pair_info:
id: 20
- name: Get Keys matching Regular Expression
morpheus.core.key_pair_info:
name: ^morpheus_.*$
regex_name: true
- name: Get All Keys with Private Key
morpheus.core.key_pair_info:
has_private_key: true
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:
.. tabularcolumns:: \X{1}{3}\X{2}{3}
- James Riach (@McGlovin1337)
.. ansible-links:: - title: "Repository (Sources)" url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core" external: true