From ee2fc5319454d3fc30e25ded30a09a8ad2ea48b2 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 25 May 2017 00:28:22 +0000 Subject: [PATCH] search in playbook dir --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index c703198..18d600c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -21,7 +21,7 @@ - name: write ssh_known_hosts file local_action: known_hosts args: - path: 'ssh_known_hosts' + 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] }}" when: