On Fri, 4 Aug 2023 at 14:10, Veera <[email protected]> wrote:
>
> Thanks .. its working now

If that is true, then you can probably also remove the "export " bit.
So:

ssh   -i  .ssh/serverb_key  root@serverB
"ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook
/home/ansible/playbook1.yml --limit serverC  --key-file
/home/ansible/priv_key.file"

-- 
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/CAF8BbLbLn9n2LdrUe8%3DEyGXXQzTaisY6Tj4EdhbQN5RitAOtrg%40mail.gmail.com.

Reply via email to