Files
ansible-automations/roles/setup/tasks/main.yml
2024-04-12 17:38:09 +02:00

45 lines
1.4 KiB
YAML

# ===================================================================================================
# ? ABOUT
# @author : Noah Knegt
# @email : personal@noahknegt.com
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
# @createdOn : 27-02-2023
# @description : This file contains the tasks for the base role, this role will be applied to
# all machines.
# ===================================================================================================
---
- name: Include distribution variables
ansible.builtin.include_vars:
file: "{{ ansible_distribution }}.yml"
# Setup the ansible user
- name: Create ansible user
ansible.builtin.include_tasks:
file: users/ansible.yml
- name: Create usable user
ansible.builtin.include_tasks:
file: users/noahk.yml
# Setup the sshd
- name: Setup openssh
ansible.builtin.include_tasks:
file: system/openssh.yml
# Setup the repositories for Debian based systems
- name: Setup Debian based repositories
ansible.builtin.include_tasks:
file: software/repositories.yml
- name: Install and configure UFW
ansible.builtin.include_tasks:
file: software/ufw.yml
- name: Install stow
ansible.builtin.include_tasks:
file: software/stow.yml
- name: Configure the usable user
ansible.builtin.include_tasks:
file: config/noahk.yml