Add update ssh_known_hosts playbook

This commit is contained in:
Edwin Zhang 2022-11-05 22:49:21 -04:00
parent 2f6427fa96
commit a15478e5a8
2 changed files with 11 additions and 9 deletions

1
README
View File

@ -10,6 +10,7 @@ Ansible playbooks of the University of Waterloo Computer Science Club.
If a playbook is not in this list, it is not guaranteed to work.
- [x] test-playbook.yml
- [x] gather-ssh-fingerprints.yml
- [x] update-ssh_known_hosts.yml
- [x] upgrade-ceo.yml
- [x] install-software.yml

View File

@ -1,9 +1,10 @@
---
- hosts: all
become: yes
become_method: sudo
tasks:
- name: copy ssh_known_hosts
copy:
src: ssh_known_hosts
dest: /etc/ssh/ssh_known_hosts
- name: Update ssh_known_hosts
hosts: all
become: true
tasks:
- name: copy ssh_known_hosts
ansible.builtin.copy:
src: files/ssh_known_hosts
dest: /etc/ssh/ssh_known_hosts
mode: u=rw,g=r,o=r