diff --git a/chocolatey/tests/integration/targets/setup_win_chocolatey/tasks/main.yml b/chocolatey/tests/integration/targets/setup_win_chocolatey/tasks/main.yml index cc83fb7..b7f04f4 100644 --- a/chocolatey/tests/integration/targets/setup_win_chocolatey/tasks/main.yml +++ b/chocolatey/tests/integration/targets/setup_win_chocolatey/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: ensure PowerShell is set to RemoteSigned mode + win_shell: | + Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force + - name: ensure test package is uninstalled win_chocolatey: name: '{{ test_choco_packages }}'