dotfiles/roles/user/ssh/tasks/main.yml
Matej Focko 7505e307fb
feat: introduce GitLab login variable
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-09-16 23:07:20 +02:00

14 lines
338 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Install SSH config
ansible.builtin.copy:
src: files/ssh_config
dest: ~/.ssh/config
mode: 0600
tags: ssh/config
- name: Install .ssh/authorized_keys
ansible.builtin.get_url:
url: https://gitlab.com/{{ gitlab_login }}.keys
dest: ~/.ssh/authorized_keys
mode: 0600
tags: ssh/authorized-keys