Created
October 7, 2025 13:10
-
-
Save simonLeary42/81e44819a87d3f2e6404be4af2ac8457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: add gitlab to /root/.ssh/known_hosts | |
| ansible.builtin.known_hosts: | |
| name: "{{ (item | split())[0] }}" | |
| key: "{{ item }}" | |
| loop: "{{ lookup('pipe', 'ssh-keyscan gitlab.rc.umass.edu gitlab.unity.rc.umass.edu') | split('\n') | reject('match', '^#') }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment