All what I need is in title, for example I want to know how I can do somethings like that :
---
- hosts: ansible-clients
tasks:
- name: Fetch source list from clients
fetch: src=/etc/apt/sources.list
dest=/tmp/allnodes.sourcelist
OR in simply way
echo remote@/etc/apt/sources.list >> local@/tmp/allnodes.sourcelist
I can create and run script in local but the only condition I have is to do all actions in one playbook.