From 65436009359cf4bbb4f3d28d30eee6838fe1c844 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Wed, 13 Sep 2017 16:56:24 +0000 Subject: [PATCH] better descrstiptions and setup ho --- tasks/fetch.yml | 2 +- tasks/setup.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/fetch.yml b/tasks/fetch.yml index 003ef1c..befb6d6 100644 --- a/tasks/fetch.yml +++ b/tasks/fetch.yml @@ -6,7 +6,7 @@ register: _ssh_host_key_cat_result changed_when: false -- name: set ssh_host_key_ed25519_public +- name: set fetched ssh_host_key_ed25519_public set_fact: ssh_host_key_ed25519_public: "{{ _ssh_host_key_cat_result.stdout.split()[1] }}" changed_when: ssh_host_key_ed25519_public != _ssh_host_key_cat_result.stdout.split()[1] diff --git a/tasks/setup.yml b/tasks/setup.yml index 1857ef2..25055a1 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -1,6 +1,8 @@ --- -- name: set ssh_host_key_ed25519_public +- setup: + +- name: set ssh_host_key_ed25519_public from setup set_fact: ssh_host_key_ed25519_public: "{{ ansible_ssh_host_key_ed25519_public }}" changed_when: ssh_host_key_ed25519_public != ansible_ssh_host_key_ed25519_public