first commit

This commit is contained in:
bzoicas
2026-03-13 11:09:33 +02:00
commit 255fd3c079
170 changed files with 8640 additions and 0 deletions

44
roles/base/tasks/main.yml Normal file
View File

@@ -0,0 +1,44 @@
# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- name: Setup base.yml
block:
# Make sure users exist on the system
- import_tasks: users/root.yml
# Set up the ansible environment
- import_tasks: ansible_setup.yml
# install software
- import_tasks: software/repositories.yml
- import_tasks: software/packages_development.yml
- import_tasks: software/packages_cleanup.yml
- import_tasks: software/packages_utilities.yml
- import_tasks: software/packages_pip.yml
# Perform remaining tasks:
#- import_tasks: system_setup/clock.yml
- import_tasks: system_setup/locale.yml
- import_tasks: system_setup/logging.yml
- import_tasks: system_setup/memory.yml
- import_tasks: system_setup/microcode.yml
- import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml
rescue:
- set_fact: task_failed=true
- name: Set users for work
when: inventory_hostname in groups['work']
block:
- import_tasks: users/super_user.yml
rescue:
- set_fact: task_failed=true
# - name: Set users for personal_laptop
# when: inventory_hostname in groups['personal_laptop']
# block:
# - import_tasks: users/super_user.yml
# rescue:
# - set_fact: task_failed=true