You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

4 months ago
- name: Main playbook
hosts: dev
2 years ago
tasks:
4 months ago
- name: Group by OS
ansible.builtin.group_by:
key: os_{{ ansible_distribution }}
- name: Check out dotfiles
ansible.builtin.git:
repo: git@git.kejadlen.dev:alpha/dotfiles.git
dest: ~/.dotfiles
version: main
accept_newhostkey: true
# repo can have local changes
ignore_errors: true # noqa: ignore-errors
- name: Import dotfiles playbook
import_playbook: dotfiles.yml
# First since this installs tooling used later
- name: Import homebrew playbook
import_playbook: homebrew.yml
- name: Import defaults playbook
import_playbook: defaults.yml
- name: Import dock playbook
import_playbook: dock.yml
- name: Import macos playbook
import_playbook: macos.yml
4 months ago
- name: Import ubuntu playbook
import_playbook: ubuntu.yml
4 months ago
- name: Misc macOS things
hosts: os_MacOSX
2 years ago
tasks:
4 months ago
12 months ago
# https://tratt.net/laurie/blog/2024/faster_shell_startup_with_shell_switching.html
4 months ago
# I'm not sure why this doesn't work on my Linux box, but whatever
12 months ago
- name: Set default shell to sh
4 months ago
ansible.builtin.user:
12 months ago
name: alpha
shell: /bin/sh --login
4 months ago
- name: Install Fennel
ansible.builtin.command: "luarocks install fennel"
args:
creates: /opt/homebrew/bin/fennel
12 months ago
# vim: ft=yaml.ansible