Skip to content

mtnsat/ansible_ipmi_lan_manage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_ipmi_lan_manage

Ansible role for managing IPMI LAN settings with ipmitool. Local fact in /etc/ansible/facts.d on remote host is created and used.

This role needs to run as root to use ipmitool, so include it in your playbook with:

roles:
  - { role: ansible_ipmi_lan_manage, become: yes }

or simply use --sudo with your ansible-playbook command.

Variables:

get_ipmi: True  # Default: False

Query the current IPMI settings for each host and attempt to save them to host_vars/{{inventory_hostname_short}}/ipmi unless you already have ipmi: defined somewhere.

set_ipmi: True  # Default: False

By default this role will only report on differences. Use -e "set_ipmi=True" to "arm" ipmi and run the ipmi lan set commands if necessary.

P.S. If this code is useful for you - don't forget to put a star on it's github repo.

About

Ansible role for managing IPMI LAN settings with ipmitool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%