Skip to content

Commit c13956c

Browse files
committed
✨ feat(git-config): print SSH public key to message for debug purpose
1 parent 6db8d90 commit c13956c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roles/ansible-role-wsl2/tasks/configure_git.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@
5555
become_user: "{{ ansible_user_id }}"
5656
register: ssh_key_pair
5757

58-
- name: Print SSH public key
58+
- name: Retrieve SSH public key content
5959
ansible.builtin.command: "cat {{ ansible_user_dir }}/.ssh/id_ed25519.pub"
6060
when: (ssh_key_pair.changed) or (ssh_key_pair is succeeded)
6161
register: ssh_pub_key_result
6262
become: true
6363
become_user: "{{ ansible_user_id }}"
64+
65+
- name: Print SSH public key
66+
ansible.builtin.debug:
67+
var: ssh_pub_key_result.stdout

0 commit comments

Comments
 (0)