Parcourir la source

ssh st key konfiguration

master
Parent
révision
a5a6a3238b
2 fichiers modifiés avec 4 ajouts et 9 suppressions
  1. +3
    -4
      tasks/main.yml
  2. +1
    -5
      tasks/save.yml

+ 3
- 4
tasks/main.yml Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer