for i in `cat /tmp/list`
        do 
        echo $i
        scp HLC_auth $i:.ssh/authorized_keys
        scp known_hosts.LLC $i:.ssh/known_hosts
        ssh $i "rm -rf .ssh/id_dsa*"
        ssh $i "ssh-keygen -d"
        done
Above the the task i need to run through playbook, please suggest how the 
playbook should look alike.


below is the code which run succesfully when i exclude scp and ssh commands 
-

 shell: for i in `cat /home/dp794d/temp/list`;
                do echo $i;
                done

Need to include the scp and ssh command also under the same shell.. how to 
perform that task.

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a01bc871-c780-4237-a6ae-2a9fcd1adfa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to