Browse Source

ssh st key konfiguration

master
parent
commit
a5a6a3238b
2 changed files with 4 additions and 9 deletions
  1. +3
    -4
      tasks/main.yml
  2. +1
    -5
      tasks/save.yml

+ 3
- 4
tasks/main.yml View File

@@ -2,8 +2,8 @@

- include: scan.yml
when:
ssh_host_key_state is defined and
ssh_host_key_state == 'scanned'
ssh_host_key_state is defined
and ssh_host_key_state == 'scanned'

- include: setup.yml
when:
@@ -12,7 +12,6 @@

- include: fetch.yml
when:
not ssh_host_key_state is defined or
ssh_host_key_state == 'fetched'
not ssh_host_key_state is defined

- include: save.yml

+ 1
- 5
tasks/save.yml View File

@@ -10,9 +10,5 @@
local_action: known_hosts
args:
path: "{{ playbook_dir }}/ssh_known_hosts"
name: '{{ inventory_hostname }}'
name: "{{ inventory_hostname }}"
key: "{{ inventory_hostname }},{{ ssh_ip }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
when:
not ssh_host_key_state is defined or
ssh_host_key_state == 'configured' or
ssh_host_key_state == 'scanned'

Loading…
Cancel
Save