mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
(cherry picked from commit 701a89eb1c
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
0b13c1eb45
commit
ab43b88d95
2 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,11 @@
|
|||
name: mercurial
|
||||
when: ansible_facts.pkg_mgr in ['pkgng', 'community.general.pkgng']
|
||||
|
||||
- name: install mercurial (zypper)
|
||||
package:
|
||||
name: mercurial
|
||||
when: ansible_facts.pkg_mgr in ['zypper', 'community.general.zypper']
|
||||
|
||||
- name: preserve the updated python
|
||||
command: cp -av "{{ which_python.stdout }}" "{{ which_python.stdout }}.updated"
|
||||
|
||||
|
|
|
@ -35,6 +35,12 @@
|
|||
autoremove: yes
|
||||
when: ansible_facts.pkg_mgr in ['pkgng', 'community.general.pkgng']
|
||||
|
||||
- name: uninstall packages which were not originally installed (zypper)
|
||||
package:
|
||||
name: mercurial
|
||||
state: absent
|
||||
when: ansible_facts.pkg_mgr in ['zypper', 'community.general.zypper']
|
||||
|
||||
- name: restore the default python
|
||||
raw: mv "{{ which_python.stdout }}.default" "{{ which_python.stdout }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue