Browse Source

current

master
parent
commit
293e823e49
3 changed files with 2 additions and 5 deletions
  1. +1
    -1
      tasks/main.yml
  2. +1
    -1
      tasks/scan.yml
  3. +0
    -3
      tasks/setup.yml

+ 1
- 1
tasks/main.yml View File

@@ -23,7 +23,7 @@
args: args:
path: 'ssh_known_hosts' path: 'ssh_known_hosts'
name: '{{ inventory_hostname }}' name: '{{ inventory_hostname }}'
key: "{{ inventory_hostname }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
key: "{{ inventory_hostname }},{{ ansible_host }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}"
when: when:
not ssh_host_key_state is defined or not ssh_host_key_state is defined or
ssh_host_key_state == 'configured' or ssh_host_key_state == 'configured' or


+ 1
- 1
tasks/scan.yml View File

@@ -1,7 +1,7 @@
--- ---


- name: scan ssh host - name: scan ssh host
local_action: command ssh-keyscan -t {{ssh_host_key_type}} {{inventory_hostname}}
local_action: command ssh-keyscan -t {{ssh_host_key_type}} {{ansible_host}}
register: _ssh_keyscan_result register: _ssh_keyscan_result
changed_when: false changed_when: false




+ 0
- 3
tasks/setup.yml View File

@@ -1,8 +1,5 @@
--- ---


- setup:
gather_subset: '!all'

- name: set ssh_host_key_ed25519_public - name: set ssh_host_key_ed25519_public
set_fact: set_fact:
ssh_host_key_ed25519_public: "{{ ansible_ssh_host_key_ed25519_public }}" ssh_host_key_ed25519_public: "{{ ansible_ssh_host_key_ed25519_public }}"


Loading…
Cancel
Save