You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scan.yml 442B

8 jaren geleden
8 jaren geleden
8 jaren geleden
123456789101112131415
  1. ---
  2. - name: scan ssh host
  3. local_action: command ssh-keyscan -t ed25519 {{ssh_scan_host}}
  4. register: _ssh_keyscan_result
  5. changed_when: false
  6. #- name: _ssh_keyscan_result
  7. # debug:
  8. # msg: "{{ _ssh_keyscan_result }}"
  9. - name: set ssh_host_key_ed25519_public
  10. set_fact:
  11. ssh_host_key_ed25519_public: "{{ _ssh_keyscan_result.stdout.split()[2] }}"
  12. changed_when: ssh_host_key_ed25519_public != _ssh_keyscan_result.stdout.split()[2]