forked from infra/ansible
also create a ssh_config for root with the non standard port
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
a83380f64c
commit
03631331d0
2 changed files with 13 additions and 0 deletions
3
roles/batcave/files/root_ssh_config
Normal file
3
roles/batcave/files/root_ssh_config
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Hosts that use a non standard ssh port.
|
||||
Host proxy01.stg.rdu3.fedoraproject.org proxy02.stg.rdu3.fedoraproject.org
|
||||
Port 222
|
||||
|
|
@ -706,6 +706,16 @@
|
|||
- batcave
|
||||
- config
|
||||
|
||||
# ssh config for easy ssh access to hosts that use a non standard port
|
||||
- name: Copy root .ssh/config
|
||||
ansible.builtin.copy:
|
||||
src: root_ssh_config
|
||||
dest: /root/.ssh/config
|
||||
mode: '0600'
|
||||
tags:
|
||||
- batcave
|
||||
- config
|
||||
|
||||
# Monitoring setup for Batcave
|
||||
- name: Setup cron for generating SSH monitoring hostlist
|
||||
ansible.builtin.copy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue