Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. [bmc]
  2. 192.168.1.100
  3. 192.168.1.101
  4. 192.168.1.102
  5.  
  6. ansible/
  7. playbooks/
  8. bmc.yml
  9. roles/
  10. bmcconfig/
  11. files/
  12. handlers/
  13. main.yml
  14. tasks/
  15. main.yml
  16. templates/
  17. group_vars/
  18. all
  19.  
  20. ---
  21. - name: Configure BMC on the hosts
  22. hosts: bmc
  23. user: root
  24. roles:
  25. - bmcconfig
  26.  
  27. ---
  28. - name: Install ipmitool
  29. apt: pkg=ipmitool state=installed
  30. - name: Run ipmitool config
  31. shell: ipmitool -your -options -go -here
  32.  
  33. ipmitool_password: $512315Adb
  34.  
  35. shell: ipmitool -your -options -go -here --password=${ipmitool_password}
  36.  
  37. power -%(command)s -T system:blade[%(blade)s]
  38.  
  39. idracadm -r %(hostname)s -u root -p '%(password)s' serveraction %(command)s
  40.  
  41. ipmitool -I lanplus -H %(hostname)s -U %(user)s -P '%(password)s' chassis power %(command)s
  42.  
  43. start /system1/led1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement