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.