summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-01-25 18:14:37 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-01-25 18:14:37 +0100
commitc5e189efc170d1ba8d9b7ab0e7491ae991f8d733 (patch)
tree2247c563f5d7a111806a6954d03a50e98dfaf2ea
parentb8cc4bc6cf7a8d04007e8d5fe8cda6fefa2e5127 (diff)
update ssh keys
-rw-r--r--roles/update_ssh_keys/tasks/main.yml7
-rw-r--r--setup_fastd.yml3
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/update_ssh_keys/tasks/main.yml b/roles/update_ssh_keys/tasks/main.yml
new file mode 100644
index 0000000..206e442
--- /dev/null
+++ b/roles/update_ssh_keys/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+- name: update authorized_keys
+ authorized_key:
+ key: '{{ item }}'
+ path: /root/.ssh/authorized_keys
+ user: root
+ with_items: '{{ authorized_keys }}'
diff --git a/setup_fastd.yml b/setup_fastd.yml
index 64e2e01..a47f63f 100644
--- a/setup_fastd.yml
+++ b/setup_fastd.yml
@@ -24,6 +24,7 @@
- install_babeld
- install_fastd
#- install_monitoring
+ - update_ssh_keys
- install_admin_packages
- name: install openvpn uplink
hosts: mullvad_uplink
@@ -42,6 +43,7 @@
- install_wireguard_backbone
- install_babeld
- install_openvpn
+ - update_ssh_keys
- install_admin_packages
- name: setup ffrl
hosts: ffrl_uplink
@@ -61,4 +63,5 @@
- install_babeld
- setup_ffrl_tunnel
#- install_monitoring
+ - update_ssh_keys
- install_admin_packages