summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/tasks/uninstall_ssh_keys.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_aws/tasks/uninstall_ssh_keys.yml')
-rw-r--r--roles/openshift_aws/tasks/uninstall_ssh_keys.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_aws/tasks/uninstall_ssh_keys.yml b/roles/openshift_aws/tasks/uninstall_ssh_keys.yml
new file mode 100644
index 000000000..27e42da53
--- /dev/null
+++ b/roles/openshift_aws/tasks/uninstall_ssh_keys.yml
@@ -0,0 +1,9 @@
+---
+- name: Remove the public keys for the user(s)
+ ec2_key:
+ state: absent
+ name: "{{ item.key_name }}"
+ region: "{{ openshift_aws_region }}"
+ with_items: "{{ openshift_aws_users }}"
+ no_log: True
+ when: openshift_aws_enable_uninstall_shared_objects | bool