I'd use MemoryMax= Systemd directive 
or, if not, LimitAS= one 
(https://www.freedesktop.org/software/systemd/man/systemd.exec.html). You 
should establish them in your desired .service/.slice file with a regular 
Ansible module to manage text file content

On Monday, April 16, 2018 at 5:28:31 PM UTC+2, jyanez...@gmail.com wrote:
> Soy nuevo en el grupo y en el mundo de ansible, necesito chequear el 
> consumo de memoria de cualquier proceso para determinar si este esta por 
> encima de un umbral, y de ser asi, reiniciarlo.
> I am new to the group and in the ansible world, I need to check the memory 
> consumption of any process to determine if it is above a threshold, and if 
> so, restart it

You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to