diff --git a/roles/ssh_server/tasks/main.yaml b/roles/ssh_server/tasks/main.yaml index adb5176..4e9139b 100644 --- a/roles/ssh_server/tasks/main.yaml +++ b/roles/ssh_server/tasks/main.yaml @@ -118,5 +118,5 @@ host: '{{ hostvars | ip_from_inventory(inventory_hostname) }}' port: 22 timeout: 30 - delegate_to: '{{ inventory_hostname }}' + delegate_to: 'localhost' delegate_facts: true