mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-09 07:34:21 -07:00
Remove blanket skips for Python 3 in CI (#10043)
* Remove blanket skips for Python 3 in CI. * Try to fix hg tests. * Disable hg tests. * Drop restriction of supervisor to <4.0.0. This was introduced in https://github.com/ansible/ansible/pull/54935. * Make tests work with supervisorctl 4.0.0. According to https://supervisord.org/changes.html#id12, "supervisorctl will now set its exit code to a non-zero value when an error condition occurs." I'm not sure why a stopped service in 'status' constitutes an error condition, but whatever 🤷... * Use correct Python executable. * Skip RHEL/macOS; diff on config write. * Skip CentOS 7 and OpenSuSE on ansible-core 2.16.
This commit is contained in:
parent
73178e3d33
commit
2a5abab738
10 changed files with 83 additions and 48 deletions
|
@ -3,5 +3,6 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
azp/posix/2
|
||||
skip/python3
|
||||
skip/aix
|
||||
skip/macos
|
||||
disabled # TODO osdn.net is out of business, so cloning a repo from there does not work
|
||||
|
|
|
@ -6,3 +6,4 @@
|
|||
dependencies:
|
||||
- setup_pkg_mgr
|
||||
- setup_remote_tmp_dir
|
||||
- setup_epel
|
||||
|
|
|
@ -26,6 +26,12 @@
|
|||
shell: apt-get -y update && apt-get -y install mercurial
|
||||
when: ansible_facts.pkg_mgr == 'apt'
|
||||
|
||||
- name: install packages (apk)
|
||||
package:
|
||||
name: mercurial
|
||||
state: present
|
||||
when: ansible_facts.pkg_mgr in ['apk', 'community.general.apk']
|
||||
|
||||
- name: install mercurial (dnf)
|
||||
dnf:
|
||||
name: mercurial
|
||||
|
@ -36,6 +42,11 @@
|
|||
name: mercurial
|
||||
when: ansible_facts.pkg_mgr == 'yum'
|
||||
|
||||
- name: install mercurial (pacman)
|
||||
package:
|
||||
name: mercurial
|
||||
when: ansible_facts.pkg_mgr in ['pacman', 'community.general.pacman']
|
||||
|
||||
- name: install mercurial (pkgng)
|
||||
package:
|
||||
name: mercurial
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
line: "#!{{ stat_hg_interpreter.stat.path }}"
|
||||
when: stat_hg_interpreter.stat.islnk
|
||||
|
||||
- name: uninstall packages which were not originally installed (apk)
|
||||
package:
|
||||
name: mercurial
|
||||
state: absent
|
||||
when: ansible_facts.pkg_mgr in ['apk', 'community.general.apk']
|
||||
|
||||
# using the apt module prevents autoremove from working, so call apt-get via shell instead
|
||||
- name: uninstall packages which were not originally installed (apt)
|
||||
shell: apt-get -y remove mercurial && apt-get -y autoremove
|
||||
|
@ -33,6 +39,12 @@
|
|||
shell: yum -y autoremove mercurial
|
||||
when: ansible_facts.pkg_mgr == 'yum'
|
||||
|
||||
- name: uninstall packages which were not originally installed (pacman)
|
||||
package:
|
||||
name: mercurial
|
||||
state: absent
|
||||
when: ansible_facts.pkg_mgr in ['pacman', 'community.general.pacman']
|
||||
|
||||
- name: uninstall packages which were not originally installed (pkgng)
|
||||
package:
|
||||
name: mercurial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue