Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_psscript/handlers/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 - name: Clear Repositories
7 ansible.windows.win_shell: |
8 Get-PSRepository | Unregister-PSRepository
9
10 - name: Add PSGallery
11 ansible.windows.win_shell: |
12 Register-PSRepository -Default
13
14 - name: Clear Installed Scripts
15 ansible.windows.win_shell: |
16 Get-InstalledScript | Uninstall-Script -Force
17
18 - name: Remove Directories
19 ansible.windows.win_file:
20 path: '{{ item.path }}'
21 state: absent
22 loop: "{{ repos }}"