system/tasks/main.yml
2022-11-11 17:48:09 +01:00

30 lines
981 B
YAML

- name: gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.yml"
tags: vars
- include_tasks: hostname.yml
- include_tasks: hosts.yml
- include_tasks: tasks.sysctl.yml
- include_tasks: dhcpcd.yml
when: ansible_os_family == "Archlinux"
- include_tasks: locales.yml
when: ansible_os_family == "Archlinux"
- include_tasks: time.yml
- include_tasks: usergroup.yml
- include_tasks: ssh.yml
- include_tasks: sudoers.yml
- include_tasks: pacman.yml
when: ansible_facts['os_family'] == "Archlinux"
- include_tasks: firewalld.yml
when: ansible_facts['os_family'] == "RedHat"
- include_tasks: depot_debian.yml
when: ansible_facts['os_family'] == "Debian"
- include_tasks: depot_redhat.yml
when: ansible_os_family == "RedHat"
- include_tasks: AUR_builder.yml
when: ansible_facts['os_family'] == "Archlinux"
- include_tasks: base_software.yml