Add update ssh_known_hosts playbook
This commit is contained in:
parent
2f6427fa96
commit
a15478e5a8
1
README
1
README
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue