diff --git a/defaults/main.yml b/defaults/main.yml index ddaedfb62ddb2bd0193a9f70e74ed9f20637d5a4..a841138b6220602df77cfac1d9a091d7832cabfc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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: diff --git a/tasks/setup_user.yml b/tasks/setup_user.yml index d44a27be52fa573dd0aceccefbdad9affc2a3a5f..b6fb6d2f201c0d3457f5b4a29baae8a80df55b15 100644 --- a/tasks/setup_user.yml +++ b/tasks/setup_user.yml @@ -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