summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-12 22:07:28 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-12 22:07:28 +0100
commite829ca802bb5819f78b8b2032c43eb04840eec23 (patch)
tree43bda1528bb0f6bfc719e5317190c0d41ea87e89
parenta917b1e1137c1ad149cefcc73325e8901857d489 (diff)
fixed authorized_keys
-rw-r--r--new_inventory.ini.sample2
-rw-r--r--roles/install_arch/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/new_inventory.ini.sample b/new_inventory.ini.sample
index 5bda407..792ee30 100644
--- a/new_inventory.ini.sample
+++ b/new_inventory.ini.sample
@@ -5,4 +5,4 @@
hetzner_webservice_username=<hetzner_webservice_username>
hetzner_webservice_password=<hetzner_webservice_password>
rescue_authorized_key=<fingerprint of ssh key to use in rescue mode>
-authorized_keys='["<key1>", "<key2>"]'
+authorized_keys=["<key1>", "<key2>"]
diff --git a/roles/install_arch/tasks/main.yml b/roles/install_arch/tasks/main.yml
index 2590b56..5b351f1 100644
--- a/roles/install_arch/tasks/main.yml
+++ b/roles/install_arch/tasks/main.yml
@@ -92,7 +92,7 @@
key: '{{ item }}'
path: /mnt/root/.ssh/authorized_keys
user: root
- with_items: authorized_keys
+ with_items: '{{ authorized_keys }}'
- name: enable sshd
command: /usr/bin/arch-chroot /mnt /usr/bin/systemctl enable sshd.service