unable to delegate_to in playbook

21 views
Skip to first unread message

Vivek Aggarwal

unread,
Apr 18, 2016, 8:29:01 AM4/18/16
to Ansible Project
i have a playbook in which there one particular task which i want to run only on one host & i m tried that using "delegate_to"  but while executing it is showing ssh error.
SSH user is showing as NONE. PLease suggest what wrong i m doing

<30.0.7.137> ESTABLISH SSH CONNECTION FOR USER: None

+++++++++++++++++++++++++
 #- include: "get_aws_ips.yml"

 - hosts: all
   remote_user: ec2-user
   gather_facts: no


   tasks:

   - name: find master key md5dum
     command: "hostname"
     delegate_to: "30.0.7.137"
     ignore_errors: yes
++++++++++++++++++++++++++++++++++++++++++
Reply all
Reply to author
Forward
0 new messages