Re: [ansible-project] Register variable not capturing

2020-03-11 Thread Stefan Hornburg (Racke)
On 3/11/20 11:20 AM, Sivaraman P wrote: > & is present in the command to stop so I have used.. it is optional... and > without & also I have used.. but still it is registering only the first line > It should be all there, so for example the following playbook: --- - hosts: all tasks: - c

Re: [ansible-project] Register variable not capturing

2020-03-11 Thread Sivaraman P
& is present in the command to stop so I have used.. it is optional... and without & also I have used.. but still it is registering only the first line -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop r

Re: [ansible-project] Register variable not capturing

2020-03-11 Thread Stefan Hornburg (Racke)
On 3/11/20 11:09 AM, Sivaraman P wrote: > Hi I have the below playbook to stop and start the service using the script > present in the the target machine, > > tasks: > - name : stop > command: ./coconf.sh -stop & > register: stop_details > > - debug: var=stop_details > > The actual

[ansible-project] Register variable not capturing

2020-03-11 Thread Sivaraman P
Hi I have the below playbook to stop and start the service using the script present in the the target machine, tasks: - name : stop command: ./coconf.sh -stop & register: stop_details - debug: var=stop_details The actual output of stop details contains multiline as below Using /opt