DNM add marker to the ssh_config
Change-Id: Ia20ce3d9312a7ef49c4a906684abada10c6e32ef
This commit is contained in:
parent
4368f2b8c3
commit
539d29c75b
|
@ -1,7 +1,22 @@
|
|||
---
|
||||
- name: Adjust ssh config to skip host key check
|
||||
copy:
|
||||
src: ssh_config
|
||||
dest: "~/.ssh/config"
|
||||
mode: 0600
|
||||
- name: Check whether the ssh config exists
|
||||
stat:
|
||||
path: "~/.ssh/config"
|
||||
register: ssh_config_exists
|
||||
when: need_ssh_config|bool
|
||||
|
||||
- name: Create the .ssh/config file
|
||||
file:
|
||||
path: "~/.ssh/config"
|
||||
state: touch
|
||||
mode: 0600
|
||||
when:
|
||||
- ssh_config_exists.stat.exists == False
|
||||
- need_ssh_config|bool
|
||||
|
||||
- name: Adjust ssh config to skip host key check
|
||||
blockinfile:
|
||||
block: "{{ lookup('template', 'ssh_config') }}"
|
||||
path: "~/.ssh/config"
|
||||
marker: " {mark} TRIPLEO-UPGRADE MARKER"
|
||||
when: need_ssh_config|bool
|
||||
|
|
Loading…
Reference in New Issue