first commit
This commit is contained in:
44
roles/base/tasks/main.yml
Normal file
44
roles/base/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user