summaryrefslogtreecommitdiffstats
path: root/roles/admin_ssh_keys/tasks/main.yml
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-10-16 22:09:24 +0200
committerMichael Scherer <misc@redhat.com>2017-10-16 22:09:24 +0200
commitffe97d8d04aaa20b77641d231b88db060c39faba (patch)
tree693622ee134bd24551e6709125e5f10b8ce8f779 /roles/admin_ssh_keys/tasks/main.yml
parent75ebebca7b92659d2bccb810b855340d00d5500d (diff)
Remove my old ssh key (ROCA attack)
Diffstat (limited to 'roles/admin_ssh_keys/tasks/main.yml')
-rw-r--r--roles/admin_ssh_keys/tasks/main.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/roles/admin_ssh_keys/tasks/main.yml b/roles/admin_ssh_keys/tasks/main.yml
index ea54fbd..f5dd4db 100644
--- a/roles/admin_ssh_keys/tasks/main.yml
+++ b/roles/admin_ssh_keys/tasks/main.yml
@@ -1,8 +1,16 @@
---
-- name: install root ssh keys
- authorized_key: user=root
- key="{{ item }}"
+- name: Install root ssh keys
+ authorized_key:
+ user: root
+ key: "{{ item }}"
with_file:
- misc.pub
- quaid.pub
- duck.pub
+
+- name: Remove old root keys
+ authorized_key:
+ user: root
+ key: "{{ item }}"
+ with_file:
+ - misc_old.pub