Re: [ansible-project] ERROR! 'retries' is not a valid attribute for a TaskInclude

2020-05-20 Thread Stefan Hornburg (Racke)
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: >    

[ansible-project] ERROR! 'retries' is not a valid attribute for a TaskInclude

2020-05-20 Thread Shifa Shaikh
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