From 63e2ec64067754a7766d9b1b1633939ce1c46337 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 16 Apr 2018 15:55:41 +0100 Subject: [PATCH] tests: expanduser lookup runs locally --- tests/ansible/integration/action/make_tmp_path.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ansible/integration/action/make_tmp_path.yml b/tests/ansible/integration/action/make_tmp_path.yml index 21333c21..b992ae54 100644 --- a/tests/ansible/integration/action/make_tmp_path.yml +++ b/tests/ansible/integration/action/make_tmp_path.yml @@ -1,6 +1,7 @@ - hosts: all any_errors_fatal: true + gather_facts: true tasks: - name: integration/action/make_tmp_path.yml assert: @@ -12,7 +13,7 @@ - assert: # This string must match ansible.cfg::remote_tmp - that: out.result.startswith("~/.ansible/mitogen-tests/"|expanduser) + that: out.result.startswith("{{ansible_user_dir}}/.ansible/mitogen-tests/") - stat: path: "{{out.result}}"