Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [bmc]
- 192.168.1.100
- 192.168.1.101
- 192.168.1.102
- ansible/
- playbooks/
- bmc.yml
- roles/
- bmcconfig/
- files/
- handlers/
- main.yml
- tasks/
- main.yml
- templates/
- group_vars/
- all
- ---
- - name: Configure BMC on the hosts
- hosts: bmc
- user: root
- roles:
- - bmcconfig
- ---
- - name: Install ipmitool
- apt: pkg=ipmitool state=installed
- - name: Run ipmitool config
- shell: ipmitool -your -options -go -here
- ipmitool_password: $512315Adb
- shell: ipmitool -your -options -go -here --password=${ipmitool_password}
- power -%(command)s -T system:blade[%(blade)s]
- idracadm -r %(hostname)s -u root -p '%(password)s' serveraction %(command)s
- ipmitool -I lanplus -H %(hostname)s -U %(user)s -P '%(password)s' chassis power %(command)s
- start /system1/led1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement