summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/win_psmodule/handlers/main.yml
blob: a3fd646da5c9828223abe1d041c337d9fed572cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: re-add PSGallery repository
  win_shell: Register-PSRepository -Default -InstallationPolicy Untrusted

- name: remove registered repos
  win_psrepository:
    name: '{{ item }}'
    state: absent
  loop:
  - PSRepo 1
  - PSRepo 2

- name: remove CA cert from trusted root store
  win_certificate_store:
    thumbprint: '{{ ca_cert_import.thumbprints[0] }}'
    store_location: LocalMachine
    store_name: Root
    state: absent

- name: remove signing key from trusted publisher store
  win_certificate_store:
    thumbprint: '{{ sign_cert_import.thumbprints[0] }}'
    store_location: LocalMachine
    store_name: TrustedPublisher
    state: absent

- name: remove test packages
  win_psmodule:
    name: '{{ item }}'
    state: absent
  loop:
  - ansible-test1
  - ansible-test2
  - ansible-clobber