Add initial Ubuntu workstation orchestration

This commit is contained in:
Fabio Scotto di Santolo
2026-03-23 22:04:25 +01:00
parent 58b913e328
commit 970ffbe81b
10 changed files with 126 additions and 14 deletions

View File

@@ -1 +1,18 @@
# install packages with apt
---
- name: Refresh apt package cache
tags: [packages]
ansible.builtin.apt:
update_cache: true
cache_valid_time: 3600
- name: Install packages on Ubuntu
tags: [packages]
ansible.builtin.apt:
name: >-
{{
(common_packages | default([]))
+ (ubuntu_packages_base | default([]))
+ (profile_packages | default([]))
+ (host_packages | default([]))
}}
state: present

View File

@@ -1 +1,12 @@
# workstation profile tasks
---
- name: Ensure workstation user directories exist
tags: [dotfiles, dotfiles:workstation]
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
owner: "{{ username }}"
group: "{{ user_group }}"
mode: "{{ item.mode }}"
loop: "{{ workstation_user_directories | default([]) }}"
loop_control:
label: "{{ item.path }}"

View File

@@ -1 +1,20 @@
# enable systemd services
---
- name: Enable base systemd services
tags: [services]
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
state: started
loop: "{{ enabled_services | default([]) }}"
loop_control:
label: "{{ item }}"
- name: Enable host systemd services
tags: [services]
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
state: started
loop: "{{ host_enabled_services | default([]) }}"
loop_control:
label: "{{ item }}"