ansible modules for Cisco UCS IMC server
imc-ansible
imc-ansible
are a set of ansible modules for Cisco UCS standalone servers(IMC servers).
installation
# Install ansible
sudo pip install ansible
# install imcsdk from github
git clone https://github.com/ciscoucs/imcsdk
cd imcsdk
sudo make install
# install imc-ansible from github
git clone https://github.com/ciscoucs/imc-ansible
cd imc-ansible
sudo python install.py
sample run
➔ ansible-playbook -i inventory site.yml
PLAY [imc]
*********************************************************************
TASK [common : check if imcsdk is installed]
***********************************
ok: [fpmr1_192.168.1.1]
TASK [common : install imcsdk]
*************************************************
skipping: [fpmr1_192.168.1.1]
TASK [admin : set password policy]
*********************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : create local user]
***********************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : delete local user]
***********************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : reset password policy]
*******************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : enable ntp]
******************************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : disable ntp]
*****************************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : enable LDAP]
*****************************************************
changed: [fpmr1_192.168.1.1]
TASK [admin : disable LDAP]
****************************************************
changed: [fpmr1_192.168.1.1]
TASK [boot : set boot order]
***************************************************
changed: [fpmr1_192.168.1.1]
TASK [boot : set boot order alternate]
*****************************************
changed: [fpmr1_192.168.1.1]
TASK [storage : create virtual drive]
******************************************
changed: [fpmr1_192.168.1.1]
TASK [storage : delete virtual drive]
******************************************
changed: [fpmr1_192.168.1.1]
PLAY RECAP
*********************************************************************
fpmr1_192.168.1.1 : ok=13 changed=12 unreachable=0 failed=0