Hi Team,

I want to parse inventory file using ansible playbook to copy ssh public id 
.
Something like ,contents of inventory file  should be used as source of 
copy module ... 
---

- 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 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3f63184e-0090-4d70-a0a8-597d58705d97n%40googlegroups.com.

Reply via email to