role: check git connections

This commit is contained in:
kevinnlsamuel committed 2026-09-15 13:32:29 +05:30
1 parent 374b182c92
commit cb90399e47
2 files changed
+43

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
- name: check connection to hosted git servers
loop:
- github.com
- gitea.kevinnlsamuel.com
changed_when: false
ansible.builtin.shell: >
ssh -T git@{{item}} 2>&1 | grep -qF 'successfully authenticated'