role: check git connections

This commit is contained in:
2026-09-15 13:32:29 +05:30
parent 374b182c92
commit cb90399e47
2 changed files with 43 additions and 0 deletions
+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'