aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sshd/tasks/synchronize_keys.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sshd/tasks/synchronize_keys.yml')
-rw-r--r--roles/sshd/tasks/synchronize_keys.yml18
1 files changed, 0 insertions, 18 deletions
diff --git a/roles/sshd/tasks/synchronize_keys.yml b/roles/sshd/tasks/synchronize_keys.yml
deleted file mode 100644
index 722fdfa..0000000
--- a/roles/sshd/tasks/synchronize_keys.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-- name: get ssh keys for all users
- find:
- paths: files/keys
- file_type: link
- recurse: true
- delegate_to: localhost
- run_once: true
- register: result
-
-- name: synchronize ssh keys
- authorized_key:
- user: "{{ item.path | dirname | basename }}"
- state: present
- key: "{{ lookup('file', item.path) }}"
- loop_control:
- label: "{{ item.path }} -> user: {{ item.path | dirname | basename }}"
- loop: "{{ result.files }}"
- failed_when: false
remember that computers suck.