2026-06-11 13:50:11 +02:00
|
|
|
---
|
|
|
|
|
- name: Install developer-environment packages
|
|
|
|
|
ansible.builtin.apt:
|
|
|
|
|
name: "{{ dev_env__packages }}"
|
|
|
|
|
state: present
|
|
|
|
|
update_cache: true
|
|
|
|
|
cache_valid_time: 3600
|
|
|
|
|
tags: [packages]
|
|
|
|
|
|
2026-06-14 19:06:15 +02:00
|
|
|
# `apply: tags:` propagates the concern tag onto the INCLUDED tasks — without it a tag on
|
|
|
|
|
# a dynamic include_tasks only selects the include itself, not its (untagged) contents, so
|
|
|
|
|
# `--tags <concern>` would run nothing (Ansible gotcha; mirrors roles/base/tasks/main.yml).
|
2026-06-11 13:50:11 +02:00
|
|
|
- name: Install Neovim (pinned release)
|
2026-06-14 19:06:15 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
|
file: neovim.yml
|
|
|
|
|
apply:
|
|
|
|
|
tags: [packages]
|
2026-06-11 13:50:11 +02:00
|
|
|
tags: [packages]
|
|
|
|
|
|
2026-06-14 19:31:23 +02:00
|
|
|
# Also reachable under `config`: oh_my_posh.yml renders /etc/oh-my-posh/zen.toml (a config
|
|
|
|
|
# task, tagged `config` within the file) alongside the binary install (`packages`). apply
|
|
|
|
|
# keeps `packages` on the untagged binary tasks; the include carries both so `--tags config`
|
|
|
|
|
# enters it and re-renders just the theme.
|
2026-06-11 13:50:11 +02:00
|
|
|
- name: Install oh-my-posh prompt (pinned release)
|
2026-06-14 19:06:15 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
|
file: oh_my_posh.yml
|
|
|
|
|
apply:
|
|
|
|
|
tags: [packages]
|
2026-06-14 19:31:23 +02:00
|
|
|
tags: [packages, config]
|
2026-06-11 13:50:11 +02:00
|
|
|
|
2026-06-11 14:21:33 +02:00
|
|
|
- name: Install Node.js (pinned release)
|
2026-06-14 19:06:15 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
|
file: nodejs.yml
|
|
|
|
|
apply:
|
|
|
|
|
tags: [packages]
|
2026-06-11 14:21:33 +02:00
|
|
|
tags: [packages]
|
|
|
|
|
|
2026-06-14 19:06:15 +02:00
|
|
|
# per_user.yml resolves dev_env__home (tagged `always`, below) then runs both the `users`
|
|
|
|
|
# (login shell) and `config` (dotfiles/stow) concerns; tag + apply both so either
|
|
|
|
|
# `--tags users` or `--tags config` reaches in and the home-dir preflight always runs.
|
2026-06-11 13:50:11 +02:00
|
|
|
- name: Configure each developer user
|
2026-06-14 19:06:15 +02:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
|
file: per_user.yml
|
|
|
|
|
apply:
|
|
|
|
|
tags: [users, config]
|
2026-06-11 13:50:11 +02:00
|
|
|
loop: "{{ dev_env__users }}"
|
|
|
|
|
loop_control:
|
|
|
|
|
loop_var: dev_env__user
|
|
|
|
|
label: "{{ dev_env__user }}"
|
2026-06-14 19:06:15 +02:00
|
|
|
tags: [users, config]
|