Pārlūkot izejas kodu

ssh st key konfiguration

master
vecāks
revīzija
a5a6a3238b
2 mainītis faili ar 4 papildinājumiem un 9 dzēšanām
  1. +3
    -4
      tasks/main.yml
  2. +1
    -5
      tasks/save.yml

+ 3
- 4
tasks/main.yml Parādīt failu

@@ -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 Parādīt failu

@@ -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'

Notiek ielāde…
Atcelt
Saglabāt