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.

пре 8 година
пре 7 година
пре 8 година
123456789101112
  1. ---
  2. - name: scan ssh host
  3. local_action: command ssh-keyscan -t {{ssh_host_key_type}} {{ansible_host}}
  4. register: _ssh_keyscan_result
  5. changed_when: false
  6. - name: set ssh_host_key_ed25519_public
  7. set_fact:
  8. ssh_host_key_ed25519_public: "{{ _ssh_keyscan_result.stdout.split()[2] }}"
  9. changed_when: ssh_host_key_ed25519_public != _ssh_keyscan_result.stdout.split()[2]
  10. when: ssh_host_key_type == "ed25519"