From 7505e307fb2636aa8712f2b12af4fa73d62b3c6c Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 16 Sep 2023 23:07:20 +0200 Subject: [PATCH] feat: introduce GitLab login variable Signed-off-by: Matej Focko --- inventory/global.yml | 1 + roles/user/ssh/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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