Debian Codegraph @

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

raw
1 # This file is part of Ansible
2
3 # Copyright: (c) 2018, Wojciech Sciesinski <wojciech[at]sciesinski[dot]net>
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 ---
7 - name: unregister the repository
8 ansible.windows.win_shell: |
9 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
10 Unregister-PSRepository {{ repository_name | quote }} -ErrorAction SilentlyContinue
11
12 - block:
13 - name: run all tests
14 include_tasks: tests.yml
15
16 - name: run update and force behavior tests
17 include_tasks: update_and_force.yml
18 always:
19 - name: ensure test repo is unregistered
20 ansible.windows.win_shell: |
21 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
22 Unregister-PSRepository {{ repository_name | quote }} -ErrorAction SilentlyContinue