---
- name: servers host setup
  when: ("servers" in group_names)
  include_role:
    name: "{{ item }}"
  loop:
    - system-security
    - journalctl
    - health-disc-space
    - cleanup-disc-space
    - health-btrfs
    - system-btrfs-auto-balancer

- name: "Integrate Docker Role includes"
  include_tasks: "./tasks/utils/docker-roles.yml"

# Native Webserver Roles
- name: setup nginx-serve-htmls
  when: ("nginx-serve-htmls" in group_names)
  include_role:
    name: nginx-serve-html
  vars:
    domain: "{{primary_domain}}"

- name: "setup corporate identity"
  when: ("corporate_identity" in group_names)
  include_role:
    name: persona-corporate

- name: setup redirect hosts
  when: ("redirect" in group_names)
  include_role:
    name: nginx-redirect-domains
  vars:
    domain_mappings: "{{ current_play_domain_mappings_redirect}}"

- name: setup www redirect 
  when: ("www_redirect" in group_names)
  include_role:
    name: nginx-redirect-www