diff --git a/inventory/global.yml b/inventory/global.yml index 685e4c8..b11af24 100644 --- a/inventory/global.yml +++ b/inventory/global.yml @@ -1,6 +1,7 @@ --- all: vars: + gitlab_login: "mfocko" target_user: "mfocko" fullname: "Matej Focko" git_email: "me@mfocko.xyz" diff --git a/roles/user/ssh/tasks/main.yml b/roles/user/ssh/tasks/main.yml index f22b0e0..1a29c0c 100644 --- a/roles/user/ssh/tasks/main.yml +++ b/roles/user/ssh/tasks/main.yml @@ -8,7 +8,7 @@ - name: Install ‹.ssh/authorized_keys› ansible.builtin.get_url: - url: https://gitlab.com/mfocko.keys + url: https://gitlab.com/{{ gitlab_login }}.keys dest: ~/.ssh/authorized_keys mode: 0600 tags: ssh/authorized-keys