An open API service indexing awesome lists of open source software.

https://github.com/moreati/ansible-psutil

Ansible collection for managing processes with psutil
https://github.com/moreati/ansible-psutil

ansible ansible-collection psutil

Last synced: 9 days ago
JSON representation

Ansible collection for managing processes with psutil

Awesome Lists containing this project

README

          

# psutil Collections for Ansible

This Ansible collection includes Ansible modules for managing processes
with the [psutils](https://pypyi/project/psutils) package.

## Included

### Modules

- psutil_kill

## Installation

```sh
ansible-galaxy collection install moreati.psutil
```

## Example

```yaml
- name: Exercise psutil
hosts: localhost
gather_facts: false
tasks:
- shell:
cmd: |
echo $$
sleep 20 &
echo $!
register: sleepers

- moreati.psutil.psutil_kill:
pids: "{{ sleepers.stdout_lines }}"
register: killers