ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
842 stars 1.54k forks source link

Return more information (e.g. uid / username) for processes in the pid module #6029

Open opoplawski opened 1 year ago

opoplawski commented 1 year ago

Summary

I need to notify the user of a running process about something. It would be helpful if the pid module could return more detailed information about the processes it finds.

Issue Type

Feature Idea

Component Name

pids

Additional Information

  - name: "Linux: See if firefox is running"
    community.general.pids:
      name: firefox
    register: firefox_pids

 - name: "Notify users"
   community.general.mail:
     to: "{{ item.user }}"
   loop: "{{ firefox_pids.pid_details }}"

Code of Conduct

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 1 year ago

cc @saranyasridharan click here for bot help