From 1cf0c58112369ab3923dc186c1a2c6db351849b3 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 31 Mar 2015 15:05:28 -0600 Subject: [PATCH] Add task for SSH pubkeys Signed-off-by: Zack Cerza --- roles/testnode/tasks/main.yml | 6 ++++++ roles/testnode/tasks/ssh_pubkeys.yml | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 roles/testnode/tasks/ssh_pubkeys.yml diff --git a/roles/testnode/tasks/main.yml b/roles/testnode/tasks/main.yml index bc88e27..311c4bf 100644 --- a/roles/testnode/tasks/main.yml +++ b/roles/testnode/tasks/main.yml @@ -42,3 +42,9 @@ - include: pip.yml tags: - pip + +# add SSH pubkeys to authorized_keys +- include: ssh_pubkeys.yml + tags: + - ssh + - pubkeys diff --git a/roles/testnode/tasks/ssh_pubkeys.yml b/roles/testnode/tasks/ssh_pubkeys.yml new file mode 100644 index 0000000..2579b91 --- /dev/null +++ b/roles/testnode/tasks/ssh_pubkeys.yml @@ -0,0 +1,5 @@ +--- +- name: Add ssh pubkeys + authorized_key: + user="{{ teuthology_user }}" + key=https://raw.githubusercontent.com/ceph/keys/autogenerated/ssh/@all.pub -- 2.39.5