2022-12-10 17:51:03 +00:00
|
|
|
- name: Gather os specific variables
|
|
|
|
ansible.builtin.include_vars: "{{ item }}"
|
2022-05-29 16:39:41 +00:00
|
|
|
with_first_found:
|
2022-10-09 17:47:44 +00:00
|
|
|
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
|
2022-05-29 16:39:41 +00:00
|
|
|
- "{{ ansible_os_family }}.yml"
|
|
|
|
tags: vars
|
|
|
|
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include hostname
|
|
|
|
ansible.builtin.include_tasks: hostname.yml
|
|
|
|
- name: Include hosts
|
|
|
|
ansible.builtin.include_tasks: hosts.yml
|
|
|
|
- name: Include tasks.sysctl
|
|
|
|
ansible.builtin.include_tasks: tasks.sysctl.yml
|
|
|
|
- name: Include wol
|
|
|
|
ansible.builtin.include_tasks: wol.yml
|
|
|
|
- name: Include dhcpcd
|
|
|
|
ansible.builtin.include_tasks: dhcpcd.yml
|
2022-05-29 16:39:41 +00:00
|
|
|
when: ansible_os_family == "Archlinux"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include locales
|
|
|
|
ansible.builtin.include_tasks: locales.yml
|
2022-05-29 16:39:41 +00:00
|
|
|
when: ansible_os_family == "Archlinux"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include time
|
|
|
|
ansible.builtin.include_tasks: time.yml
|
|
|
|
- name: Include usergroup
|
|
|
|
ansible.builtin.include_tasks: usergroup.yml
|
|
|
|
- name: Include ssh
|
|
|
|
ansible.builtin.include_tasks: ssh.yml
|
|
|
|
- name: Include sudoers
|
|
|
|
ansible.builtin.include_tasks: sudoers.yml
|
|
|
|
- name: Include pacman
|
|
|
|
ansible.builtin.include_tasks: pacman.yml
|
2021-11-17 16:24:38 +00:00
|
|
|
when: ansible_facts['os_family'] == "Archlinux"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include firewalld
|
|
|
|
ansible.builtin.include_tasks: firewalld.yml
|
2022-06-06 16:22:14 +00:00
|
|
|
when: ansible_facts['os_family'] == "RedHat"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include depot_debian
|
|
|
|
ansible.builtin.include_tasks: depot_debian.yml
|
2021-11-17 16:24:38 +00:00
|
|
|
when: ansible_facts['os_family'] == "Debian"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Inclide depot_redhat
|
|
|
|
ansible.builtin.include_tasks: depot_redhat.yml
|
2022-05-29 16:39:41 +00:00
|
|
|
when: ansible_os_family == "RedHat"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include AUR_builder
|
|
|
|
ansible.builtin.include_tasks: AUR_builder.yml
|
2021-11-17 16:24:38 +00:00
|
|
|
when: ansible_facts['os_family'] == "Archlinux"
|
2022-12-10 17:51:03 +00:00
|
|
|
- name: Include base_software
|
|
|
|
ansible.builtin.include_tasks: base_software.yml
|
|
|
|
- name: Include bat
|
|
|
|
ansible.builtin.include_tasks: bat.yml
|
2022-11-19 18:05:14 +00:00
|
|
|
when: ansible_facts['os_family'] == "Debian"
|