Ansible role to optimize _only_ non Apple SSDs.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
meta
tasks
tests
.gitignore
.travis.yml
LICENSE
README.md

README.md

ansible-macos-ssd

A Ansible role to optimize only non Apple SSDs.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • Ansible 2.3

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-macos-ssd.git
  name: feffi.macos-ssd

Role Variables

All role based variables are listed below, along with default values:

macos_ssd:
  # Enable TRIM. See http://en.wikipedia.org/wiki/TRIM
  trim: false

  # Enable Sudden Motion Sensor technology. See https://en.wikipedia.org/wiki/Sudden_Motion_Sensor
  sms: false

  # Disable file access time. See https://en.wikipedia.org/wiki/Access_time
  noatime: false

  # where to set the noatime
  noatime_plist: "/Library/LaunchDaemons/com.noatime.plist"

Dependencies

None.

Example Playbook

    - hosts: all
      vars:
        macos_ssd:
          trim: true
          sms: true
          noatime: true
      roles:
        - { role: feffi.macos-ssd }

Or with local parameters:

    - hosts: all
      roles:
        - { role: feffi.macos-ssd,
            macos_ssd: {
              trim: true,
              sms: true,
              noatime: true
            }
          }