Guest User

Untitled

a guest
Jan 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #!/usr/bin/ansible-playbook
  2. ---
  3. - hosts: localhost
  4. connection: local
  5. gather_facts: no
  6. retry_files_enabled: false
  7. vars_prompt:
  8. - name: "PASSWORD"
  9. prompt: "Password for superone IPMI?"
  10. private: yes
  11. tasks:
  12. - name: switch
  13. wait_for:
  14. host: 192.168.66.4
  15. port: 80
  16. timeout: 10
  17. - name: superone-bmc network
  18. wait_for:
  19. host: 192.168.66.7
  20. port: 80
  21. - name: superone-bmc power
  22. ipmi_power:
  23. name: 192.168.66.7
  24. user: ADMIN
  25. password: "{{ PASSWORD }}"
  26. state: on
  27. - name: superone ping
  28. wait_for:
  29. host: 192.168.66.10
  30. port: 22
  31.  
  32. PLAY [localhost] ****...
  33.  
  34. TASK [switch] ****...
  35. ok: [localhost]
  36.  
  37. TASK [server-bmc interface] ****...
  38. ok: [localhost]
Add Comment
Please, Sign In to add comment