Isn't this what systemd is supposed to be for? If you deploy a proper systemd unit, you can use the service module.
On Wed, 2 Sep 2020 at 15:43, Rafael Tomelin <[email protected]> wrote: > Hi dear, > > I created the filter_plugin that check if running process and return true > or false. This is an example: > > process_name|get_processes > > I want to create this task: > > *- name: start service* > * shell: /usr/local/bin/my_script* > * when: process_name|get_processes is false* > > But it seems to me that the conditional does not accept filter_plugin. > > -- > Atenciosamente, > > Rafael Tomelin > Tel.: 51-984104084 > Skype: rafael.tomelin > > LPI ID: LPI000191271 > Red Hat Certified Engineer > Puppet Professional 2017 Certification > > > > > > > > > -- > > > 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 [email protected]. > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAGEUqbDLJ%2BqXtCOvrPELFQA9OeoSG7Q-p7kZbAdW0yvVRuftKw%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAGEUqbDLJ%2BqXtCOvrPELFQA9OeoSG7Q-p7kZbAdW0yvVRuftKw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > -- Sent from a mobile device - please excuse the brevity, spelling and punctuation. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOfjPKaKBtujceM1WpvL9pQAJ0UPVZFQc-d3jzOdyx2LQ%40mail.gmail.com.
