Update for CentOS 8 and tags
This commit is contained in:
parent
ee60d76a71
commit
c07a4980e6
6 changed files with 55 additions and 9 deletions
26
tasks/uninstall.yml
Normal file
26
tasks/uninstall.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- name: Remove PowerShell's files
|
||||
file:
|
||||
path: "/etc/yum.repos.d/microsoft.repo"
|
||||
state: absent
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Registering Ubuntu PowerShell repository
|
||||
file:
|
||||
path: "/etc/apt/sources.list.d/microsoft.list"
|
||||
state: absent
|
||||
when:
|
||||
- ansible_distribution == "Ubuntu"
|
||||
|
||||
- name: Registering Debian AnsiPowerShellble repository
|
||||
apt_repository:
|
||||
repo: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-{{ ansible_distribution_name }}-prod {{ ansible_distribution_name }} main
|
||||
filename: microsoft.list
|
||||
state: absent
|
||||
update_cache: yes
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
|
||||
- name: Remove AnsiPowerShellble's packages
|
||||
package: name='{{ powershell_packages }}' state=absent update_cache=yes
|
||||
Loading…
Add table
Add a link
Reference in a new issue