system/tasks/main.yml
vincent 6c2ddb35a6
Some checks failed
continuous-integration/drone/push Build is failing
fix: issue with debian when migrate to resolved-systemd
2023-10-24 22:43:19 +02:00

52 lines
1.9 KiB
YAML

- name: Gather os specific variables
ansible.builtin.include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.yml"
tags: vars
- 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
when: ansible_os_family == "Archlinux" or ansible_os_family == "Debian"
- name: Inclide systemd-resolved
ansible.builtin.include_tasks: systemd-resolved.yml
- name: Include locales
ansible.builtin.include_tasks: locales.yml
when: ansible_os_family == "Archlinux"
- 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
when: ansible_facts['os_family'] == "Archlinux"
- name: Include firewalld
ansible.builtin.include_tasks: firewalld.yml
when: ansible_facts['os_family'] == "RedHat"
- name: Include depot_debian
ansible.builtin.include_tasks: depot_debian.yml
when: ansible_facts['os_family'] == "Debian"
- name: Inclide depot_redhat
ansible.builtin.include_tasks: depot_redhat.yml
when: ansible_os_family == "RedHat"
- name: Include AUR_builder
ansible.builtin.include_tasks: AUR_builder.yml
when: ansible_facts['os_family'] == "Archlinux"
- name: Include base_software
ansible.builtin.include_tasks: base_software.yml
- name: Include bat
ansible.builtin.include_tasks: bat.yml
when: ansible_facts['os_family'] == "Debian"