On 5/21/20 4:48 AM, Shifa Shaikh wrote:
> My requirement is to run the script stop-all as many times (5 retries) until
> the output of ps -fu user1 |wc -l becomes
> less than 2.
>
> I wrote the below ansible playbook for the same:
>
> cat stop.yml
>
> |
> -hosts:dest_nodes
> tasks:
>
My requirement is to run the script stop-all as many times (5 retries)
until the output of ps -fu user1 |wc -l becomes less than 2.
I wrote the below ansible playbook for the same:
cat stop.yml
- hosts: dest_nodes
tasks:
- name: Start service
include_tasks: "{{ playbook-dir