If you are using Ansible 2.9 and above, please refer to this link.
On May 16, 2019, Red Hat released Ansible version 2.8. In this version Western Telematic has expanded our slate of modules for the Ansible platform.
Ansible is Red Hat's Automation platform to simplify repetitive tasks and to help reduce errors by communicating with network devices in a consistent and uniform manner. Ansible automates software provisioning, configuration management, and application deployment.
In this spirit WTI's second commitment to the Ansible platform is focuses on WTI's line of power products:
(cpm_plugcontrol) is a module to Query or Set the state of Power Plugs on WTI Devices with power plugs. So from one central place you can turn power on, off or reboot equipment connected to WTI Power devices.
(cpm_plugconfig) is a module to Query or Set the parameters of Power Plugs on WTI Devices with power plugs.
To interface with Ansible requires the writing of YAML based Playbooks, no programming knowledge is needed.
Sample playbooks can be found on GitHub by clicking on this link: WTI Sample PlayBooks.
WTI's initial commit to the Ansible project can be accessed from this link.