macos-power

Ansible Role: macos-power

An Ansible role that sets macOS settings related to power management to the desired values.

Role Variables

Available variables are listed below, along with default values in minutes:

computersleep: '30'
displaysleep: '15'
harddisksleep: '60'
wakeonnetworkaccess: 'On'
restartpowerfailure: 'On'
restartfreeze: 'On'

Example Playbook

    - hosts: ci_macs
      roles:
        - { role: macos-power, 
            macos_power_settings: [
              { cmd : displaysleep,         desired_value: 'after 15 minutes' },
              { cmd : computersleep,        desired_value: 'Never' },
              { cmd : harddisksleep,        desired_value: 'Never' },
              { cmd : wakeonnetworkaccess,  desired_value: 'On' },
              { cmd : restartfreeze,        desired_value: 'Off' }
            ]
          }

License

Apache 2.0

About

Simplified control over the power settings for macOS

Install
ansible-galaxy install appian/ansible-role-macos-power
GitHub repository
License
apache-2.0
Downloads
217
Owner