mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-10 02:09:11 -07:00
Vultr: Introducing vr_sshkey_facts module (#42615)
This commit introduces a new module called vr_sshkey_facts. This module aims to return the list of SSH keys avaiable in Vultr. Sample available here: ``` "vultr_sshkey_facts": [ { "date_created": "2018-07-10 14:49:13", "id": "5b43c760d7d84", "name": "me@home", "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+ZFQv3MyjtL1BMpSA0o0gIkzLVVC711rthT29hBNeORdNowQ7FSvVWUdAbTq00U7Xzak1ANIYLJyn+0r7olsdG4XEiUR0dqgC99kbT/QhY5mLe5lpl7JUjW9ctn00hNmt+TswpatCKWPNwdeAJT2ERynZaqPobENgewrwerqewqIVew7qFeZygxsPVn36EUr2Cdq7Nb7U0XFXh3x1p0v0+MbL4tiJwPlMAGvFTKIMt+EaA+AsRIxiOo9CMk5ZuOl9pT8h5vNuEOcvS0qx4v44EAD2VOsCVCcrPNMcpuSzZP8dRTGU9wRREAWXngD0Zq9YJMH38VTxHiskoBw1NnPz me@home" } ] ```
This commit is contained in:
parent
7dbdc8a92e
commit
9b898ebc20
5 changed files with 156 additions and 0 deletions
|
@ -238,6 +238,7 @@ class Vultr:
|
|||
|
||||
if 'key' in config:
|
||||
resource[config['key']] = resource[search_key]
|
||||
del resource[search_key]
|
||||
|
||||
return resource
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue