You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/win_psmodule/handlers/main.yml

23 lines
534 B
YAML

- name: delete temporary directory
win_file:
path: "{{ remote_tmp_dir }}"
state: absent
- name: re-add PSGallery repository
win_shell: Register-PSRepository -Default -InstallationPolicy Untrusted
- name: remove registered repo
win_shell: |
$name = 'PSRepo 1'
if ((Get-PSRepository -Name $name -ErrorAction SilentlyContinue)) {
Unregister-PSRepository -Name $name
}
- name: remove test packages
win_psmodule:
name: '{{ item }}'
state: absent
loop:
- ansible-test1
- ansible-clobber