- 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'