Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_pssession_configuration/tasks/main.yml

raw
1 # This file is part of Ansible
2
3 # Copyright: (c) 2020, Brian Scholer <@briantist>
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5 ---
6 - block:
7 - ansible.windows.setup:
8 gather_subset:
9 - '!all'
10 - '!min'
11 - powershell_version
12
13 - import_tasks: tests.yml
14
15 always:
16 - name: Remove
17 ansible.windows.win_shell: |
18 Unregister-PSSessionConfiguration -Name '{{ config_name }}' -Force -ErrorAction SilentlyContinue
19 ignore_errors: yes
20 # sometimes this fails because the connection was interrupted
21 # it doesn't matter because it's still successful