specify a host in each task.

Hello ,

how I can specify a host in each task.

Thank you

Please explain a bit more why what etc
And share a playbook

I didn’t tested, but maybe adding somethine like this?

  • lineinfile:
    path: path_to_localLogfile
    insertafter: EOF
    line: ‘{{ vm_IP }}’
    create: yes
    delegate_to: localhost

(Assuming you want to save the info stored in ‘{{ vm_IP }}’ to a localfile

he working :slight_smile:
Thank you