From 81e386586f8bb0e96abf0ce4fd740e2978aaedbc Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 12 Feb 2019 00:04:30 +0000 Subject: [PATCH] tests: allow running Ansible tests locally without -udmw again. --- tests/ansible/hosts/default.hosts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ansible/hosts/default.hosts b/tests/ansible/hosts/default.hosts index 02f3c614..d40c3dd0 100644 --- a/tests/ansible/hosts/default.hosts +++ b/tests/ansible/hosts/default.hosts @@ -1,8 +1,9 @@ # vim: syntax=dosini # When running the tests outside CI, make a single 'target' host which is the -# local machine. -target ansible_host=localhost +# local machine. The ansible_user override is necessary since some tests want a +# fixed ansible.cfg remote_user setting to test against. +target ansible_host=localhost ansible_user="{{lookup('env', 'USER')}}" [test-targets] target