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
- Host: GitHub
- URL: https://github.com/moreati/ansible-psutil
- Owner: moreati
- Created: 2020-05-02T19:28:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T21:02:18.000Z (over 5 years ago)
- Last Synced: 2025-03-18T07:47:37.780Z (7 months ago)
- Topics: ansible, ansible-collection, psutil
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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