Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created July 9, 2021 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nleiva/611cb989a178b046b9428d1093e98f5f to your computer and use it in GitHub Desktop.
Save nleiva/611cb989a178b046b9428d1093e98f5f to your computer and use it in GitHub Desktop.
- name: Delete SSH Key Pair for instance
amazon.aws.ec2_key:
name: "{{ ec2_resource_prefix }}-key"
region: "{{ ec2_region }}"
state: absent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment