Pārlūkot izejas kodu

ssh_ip var

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

+ 2
- 1
defaults/main.yml Parādīt failu

@@ -1 +1,2 @@
ssh_host_key_type: ed25519
ssh_host_key_type: ed25519
ssh_ip: "{{ansible_host}}"

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

@@ -23,7 +23,7 @@
args:
path: "{{ playbook_dir }}/ssh_known_hosts"
name: '{{ inventory_hostname }}'
key: "{{ inventory_hostname }},{{ ansible_host }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
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


Notiek ielāde…
Atcelt
Saglabāt