Hi.. 

I am trying to power management by "impi_power"

First, I had checked the "ipmitool" is working on Ansible-Controller like 
below.

root@ubuntu-Ansible:~#
root@ubuntu-Ansible:~# ipmitool -I lanplus -H 192.168.200.211 -U root -P 
password power status
Chassis Power is on
root@ubuntu-Ansible:~#



Here is my playbook.

root@ubuntu-Ansible:~# cat Host-Power_Off-01.yml
---
- name: Power Off to Host -  TEST
  hosts: DELL-R610
  tasks:
  - name: Power OFF Server
    ipmi_power:
      name: "192.168.200.211"
      user: "root"
      password: "password"
      timeout: 600
      state: "on"

when i ran it, it was failed like below.
would you please let me know what is wrong in my playbook?

root@ubuntu-Ansible:~# ansible-playbook Host-Power_Off-01.yml

PLAY [Power Off to Host -  TEST] 
*****************************************************************************************************************************

TASK [Gathering Facts] 
***************************************************************************************************************************************
fatal: [DELL-R610]: UNREACHABLE! => {"changed": false, "msg": "Failed to 
connect to the host via ssh: root@dell-r610: Permission denied 
(password).", "unreachable": true}
        to retry, use: --limit @/root/Host-Power_Off-01.retry

PLAY RECAP 
***************************************************************************************************************************************************
DELL-R610                  : ok=0    changed=0    unreachable=1    failed=0

root@ubuntu-Ansible:~#

Kevin

-- 
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/58f7e476-9e65-4873-845b-7a40b213c941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to