mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
fix windows integration tests to run under kerberos users
This commit is contained in:
@@ -3,4 +3,3 @@
|
||||
# Parameters to pass to test scripts.
|
||||
test_win_script_value: VaLuE
|
||||
test_win_script_splat: "@{This='THIS'; That='THAT'; Other='OTHER'}"
|
||||
test_win_script_filename: "C:/Users/{{ansible_ssh_user}}/testing_win_script.txt"
|
||||
|
||||
@@ -16,6 +16,14 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: get tempdir path
|
||||
raw: $env:TEMP
|
||||
register: tempdir
|
||||
|
||||
- name: set script path dynamically
|
||||
set_fact:
|
||||
test_win_script_filename: "{{ tempdir.stdout_lines[0] }}/testing_win_script.txt"
|
||||
|
||||
- name: run simple test script
|
||||
script: test_script.ps1
|
||||
register: test_script_result
|
||||
|
||||
Reference in New Issue
Block a user