We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c67ca commit 9ceb546Copy full SHA for 9ceb546
roles/platform/tasks/initialize_aws.yml
@@ -17,4 +17,9 @@
17
- name: Retrieve AWS Caller details
18
amazon.aws.aws_caller_info:
19
register: __aws_caller_info
20
- failed_when: __aws_caller_info.account is not defined
+ failed_when: __aws_caller_info.account is not defined
21
+
22
+- name: Confirm AWS SSH Public Key ID exists
23
+ ansible.builtin.command: aws ec2 describe-key-pairs --region "{{ plat__region }}" --key-name "{{ plat__public_key_id }}"
24
+ register: __aws_ssh_key_pair
25
+ failed_when: __aws_ssh_key_pair.rc != 0
0 commit comments