44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# 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 |