mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-11 08:34:21 -07:00
* Initial commit
* Adding changelog fragment
* Further refactoring
* Fixing bad copy/paste and adding task for psutil >= 5.7.0 install
* Inverting psutil installation order to reduce duplication
* Optimizing regex compilation
(cherry picked from commit 118c040879
)
Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
parent
8c23d0e345
commit
739210c6b9
3 changed files with 137 additions and 47 deletions
|
@ -6,12 +6,18 @@
|
|||
# Test code for the pids module
|
||||
# Copyright: (c) 2019, Saranya Sridharan
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
- name: "Installing the psutil module"
|
||||
- name: Attempt installation of latest 'psutil' version
|
||||
pip:
|
||||
name: psutil
|
||||
ignore_errors: true
|
||||
register: psutil_latest_install
|
||||
|
||||
- name: Install greatest 'psutil' version which will work with all pip versions
|
||||
pip:
|
||||
name: psutil < 5.7.0
|
||||
# Version 5.7.0 breaks on older pip versions. See https://github.com/ansible/ansible/pull/70667
|
||||
when: psutil_latest_install is failed
|
||||
|
||||
- name: "Checking the empty result"
|
||||
- name: "Checking the empty result"
|
||||
pids:
|
||||
name: "blahblah"
|
||||
register: emptypids
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue