moovs / megacli

Install MegaCLI for RAID status with Ansible

Home Page:https://github.com/moovs/megacli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install MegaCLI on Debian 9 (stretch) with Ansible

  1. Clone this repository locally: git clone https://github.com/moovs/megacli.git
  2. Add your ssh-key to the host you want to install MegaCLI: ssh-copy-id -i ~/.ssh/id_rsa.pub user@host
  • This logs into the server host, and copies keys to the server, and configures them to grant access by adding them to the authorized_keys file.
  1. Just set up your server's IP in hosts file for example:
[my_group]
my_domain ansible_ssh_host=192.168.0.0 ansible_ssh_user=my_user
  1. And run: ansible-playbook -i hosts ./roles/megacli/main.yml
  2. Simple way to get a status of RAID run next command: megacli -AdpAllInfo -aALL
  3. You have installed MegaCLI on your host đź‘˝