- host: all
tasks
- name: var file
include_vars:
file: /home/raka/raka.txt
- name: copy
copy:
src: /root/.ssh/$lab4
dest: /home/mp/.ssh/authorized_keys
The contents of inventory inventory_file --
lab4=MP04.pub
lab6=MP06.pub
---------------------------------------
Please guide .
Thanks