Files
dev-machine/main.yml
Felix Nehrke b8e5743d1c Move local config into the root to make it easier to see
The local config is intended to be configured per environment. Therefore
it feels awkward to navigate deeply into the structures simply to adjust
a local configuration. Furthermore this change allows me to make an
assumption about the file right in the executed code, so if the file is
not setup properly ansible will fail even before execution!
2025-09-13 03:12:53 +02:00

28 lines
589 B
YAML

---
- hosts: localhost
vars_files:
- local.config.yml
roles:
- role: roles/macos
tags: [macos]
when: ansible_os_family == 'Darwin'
- role: roles/debian
tags: [debian]
when: ansible_os_family == 'Debian'
- role: roles/ssh
tags: [ssh]
- role: roles/dotfiles
tags: [dotfiles]
tasks:
- name: Dump hostvars
tags: [never, dump]
debug:
var: hostvars[inventory_hostname]
- name: Ensure fly
tags: [packages]
get_url:
url: "{{ fly_url }}"
dest: "{{ lookup('env', 'HOME') }}/.local/bin/fly"
mode: "u=rwx,g=rx,o=rx"