mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
house cleaning based on code review
This commit is contained in:
@@ -13,14 +13,10 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The instance id to get the password data from.
|
- The instance id to get the password data from.
|
||||||
required: true
|
required: true
|
||||||
default: null
|
|
||||||
aliases: []
|
|
||||||
key_file:
|
key_file:
|
||||||
description:
|
description:
|
||||||
- path to the file containing the key pair used on the instance
|
- path to the file containing the key pair used on the instance
|
||||||
required: true
|
required: true
|
||||||
default: null
|
|
||||||
aliases: []
|
|
||||||
region:
|
region:
|
||||||
description:
|
description:
|
||||||
- The AWS region to use. Must be specified if ec2_url is not used. If not specified then the value of the EC2_REGION environment variable, if any, is used.
|
- The AWS region to use. Must be specified if ec2_url is not used. If not specified then the value of the EC2_REGION environment variable, if any, is used.
|
||||||
@@ -42,7 +38,6 @@ tasks:
|
|||||||
key_file: "~/aws-creds/my_test_key.pem"
|
key_file: "~/aws-creds/my_test_key.pem"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import sys
|
|
||||||
from base64 import b64decode
|
from base64 import b64decode
|
||||||
from os.path import expanduser
|
from os.path import expanduser
|
||||||
from Crypto.Cipher import PKCS1_v1_5
|
from Crypto.Cipher import PKCS1_v1_5
|
||||||
|
|||||||
Reference in New Issue
Block a user