|
|
|
@ -3,10 +3,10 @@
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
- name: "Installing the psutil module"
|
|
|
|
- name: "Installing the psutil module"
|
|
|
|
pip:
|
|
|
|
pip:
|
|
|
|
name: psutil
|
|
|
|
name: psutil==5.6.7
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Checking the empty result"
|
|
|
|
- name: "Checking the empty result"
|
|
|
|
pids:
|
|
|
|
pids:
|
|
|
|
name: "blahblah"
|
|
|
|
name: "blahblah"
|
|
|
|
register: emptypids
|
|
|
|
register: emptypids
|
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- emptypids is not changed
|
|
|
|
- emptypids is not changed
|
|
|
|
- emptypids.pids == []
|
|
|
|
- emptypids.pids == []
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Picking a random process name"
|
|
|
|
- name: "Picking a random process name"
|
|
|
|
command: "echo 'some-random-long-name-{{ 99999999 | random }}'"
|
|
|
|
command: "echo 'some-random-long-name-{{ 99999999 | random }}'"
|
|
|
|
|