Commit 2cd49148 authored by rlacko's avatar rlacko 💬
Browse files

Update ssh key variable

parent 7954c9f5
......@@ -23,7 +23,7 @@ hostname: "{{ inventory_hostname }}"
# sudo: yes
# passwordless_sudo: yes
# # https://docs.ansible.com/ansible/latest/collections/ansible/posix/authorized_key_module.html#examples
# keys_url: https://git.sch.bme.hu/xy.keys
# ssh_key: https://git.sch.bme.hu/xy.keys
# netplan:
# network:
......
......@@ -38,7 +38,7 @@
ansible.posix.authorized_key:
user: "{{ user.name }}"
state: present
key: "{{ user.keys_url }}"
key: "{{ user.ssh_key }}"
manage_dir: yes
exclusive: yes
when: user.keys_url is defined
when: user.ssh_key is defined
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment