diff --git a/README.md b/README.md index 1ecdf32..92bff30 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ SSH_KEY= ansible-playbook setup-ssh.yml --ask-vault-pass -e "setup_ssh_logname=$LOGUSER" -e "setup_ssh_key=$SSH_KEY" ``` +This playbook also adds `rhodium.n39.eu` (OpenWRT router), but our Ansible cannot set up SSH keys (yet). +Please [add your key to OpenWRT manually](https://openwrt.org/docs/guide-user/security/dropbear.public-key.auth#from_the_luci_web_interface). + ## Edit vault encrypted vars files ```bash diff --git a/inventory.yml b/inventory.yml index 4263588..76a969d 100644 --- a/inventory.yml +++ b/inventory.yml @@ -19,6 +19,8 @@ all: k3s-w1.n39.eu: k3s-w2.n39.eu: k3s-w3.n39.eu: +# Host rhodium.n39.eu is the OpenWRT router, but cannot be added here +# as it would be treated like a Debian host children: docker_host: diff --git a/templates/ssh_config.j2 b/templates/ssh_config.j2 index 8dcadf2..411b381 100644 --- a/templates/ssh_config.j2 +++ b/templates/ssh_config.j2 @@ -25,3 +25,11 @@ Host {{ host }} Port 22 {% endfor %} + +{# This is our router #} +Host rhodium.n39.eu + Hostname rhodium.n39.eu + IdentityFile {{ setup_ssh_key }} + User root + ProxyJump ssh.n39.eu + Port 22