Skip to content

Ansible collection for managing processes with psutil

Notifications You must be signed in to change notification settings

moreati/ansible-psutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psutil Collections for Ansible

This Ansible collection includes Ansible modules for managing processes with the psutils package.

Included

Modules

  • psutil_kill

Installation

ansible-galaxy collection install moreati.psutil

Example

- 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

About

Ansible collection for managing processes with psutil

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages