---
# file: roles/common/tasks/main.yml

#
# This is the common role for all systems.
# If something is not applicable to every system, it shouldn't be here.
#

- import_tasks: packaging.yml
- include_tasks: user.yml
  when: ldap_server is not defined
- import_tasks: systemd.yml
- import_tasks: nobeep.yml
- import_tasks: sudo.yml
- import_tasks: hostname.yml
- import_tasks: grub.yml
- include_tasks: selinux.yml
  when: ansible_os_family == "RedHat"

---
# file: roles/common/tasks/main.yml

#
# This is the common role for all systems.
# If something is not applicable to every system, it shouldn't be here.
#

- import_tasks: packaging.yml
- import_tasks: user.yml
  when: ldap_server is not defined
- import_tasks: systemd.yml
- import_tasks: nobeep.yml
- import_tasks: sudo.yml
- import_tasks: hostname.yml
- import_tasks: grub.yml
- include_tasks: selinux.yml
  when: ansible_os_family == "RedHat"

Use import_tasks instead of include_tasks for user.yml
Use import_tasks instead of include_tasks for user.yml

include_tasks is only needed for loops and prevents filtering by tags
within the include.
