Skip to content

TO-249 remove feffi task for macos #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 26, 2024
23 changes: 16 additions & 7 deletions tasks/Darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@
changed_when: false
become: true

- name: Additional cleanups for never sleep mode
ansible.builtin.include_role:
name: feffi.macos-standby
vars:
standby_delay: false # noqa: var-naming[no-role-prefix]
hibernate_mode: 0 # noqa: var-naming[no-role-prefix]
remove_sleepimage: true # noqa: var-naming[no-role-prefix]
- name: Never Sleep Mode
ansible.builtin.command: "{{ item }}"
with_items:
- pmset -a standbydelay 0
- pmset -a displaysleep 0
- pmset -a disablesleep 1
- pmset -a disksleep 0
- pmset -a hibernatemode 0
- pmset disablesleep 1
# Not sure the stuff below works
- systemsetup -setsleep Never
- systemsetup -setharddisksleep Never
- systemsetup -setcomputersleep Never
- systemsetup -setdisplaysleep Never
changed_when: false
become: true

- name: Ensure homebrew is installed
ansible.builtin.include_role:
Expand Down
Loading