Files
ansible/roles/mac/tasks/main.yml
T
PhilandClaude Opus 5.5 fe268bd171 Mac: power settings, firewall, SSH key
- pmset: never sleep, no disk sleep, restart after a power cut, wake on
  network. The Mac had sleep 1 and only stayed up because BlueBubbles runs
  caffeinate.
- Application firewall on, keeping signed software allowed automatically,
  stealth and block-all off. Hermes's ad hoc signed Python (dashboard on
  9119) is allowed explicitly, since an unattended Mac blocks unsigned
  programs silently.
- Local id_ed25519.pub in phil's authorized_keys (already there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 06:20:43 -07:00

32 lines
757 B
YAML

# Homebrew refuses to run as root, so none of these use become.
- name: Homebrew taps
community.general.homebrew_tap:
name: "{{ homebrew_taps }}"
tags: homebrew
- name: Homebrew formulae
community.general.homebrew:
name: "{{ homebrew_formulae }}"
state: present
tags: homebrew
- name: Homebrew casks
community.general.homebrew_cask:
name: "{{ homebrew_casks }}"
state: present
tags: homebrew
- name: SSH key
ansible.posix.authorized_key:
user: "{{ ansible_user }}"
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_ed25519.pub') }}"
tags: ssh
- name: Power settings
ansible.builtin.import_tasks: power.yml
tags: power
- name: Firewall
ansible.builtin.import_tasks: firewall.yml
tags: firewall