---

# Root ansible playbook
- hosts: all
  tasks:
    - name: Create groups by distribution and version
      group_by: key={{ ansible_distribution }}-{{ ansible_distribution_version }}

    - name: Create groups by distribution
      group_by: key={{ ansible_distribution }}

    - name: Create a distribution based OS family
      group_by: key={{ ansible_os_family }}

  vars:
    sshd: sshd
    bind: bind

  roles:
    - bootstrap
    - common
    - { role: deploy, when: "ansible_distribution != 'MacOSX'" }

- hosts: EL
  gather_facts: no
  roles:
    - ntp

- hosts: Fedora
  gather_facts: no
  roles:
    - ntp
    - firewalld

- hosts: Ubuntu
  gather_facts: no
  roles:
    - ntp

- include: mailman.yml
- include: dnsservers.yml
- include: webservers.yml
- include: jenkins-slaves.yml
- include: jenkins-master.yml
- include: developer.yml
- include: localhost.yml
- include: remote.yml
- include: haus.yml

---

# Root ansible playbook
- hosts: all
  tasks:
    - name: Create groups by distribution and version
      group_by: key={{ ansible_distribution }}-{{ ansible_distribution_version }}

    - name: Create groups by distribution
      group_by: key={{ ansible_distribution }}

    - name: Create a distribution based OS family
      group_by: key={{ ansible_os_family }}

  vars:
    sshd: sshd
    bind: bind

  roles:
    - bootstrap
    - common
    - { role: deploy }

- hosts: EL
  gather_facts: no
  roles:
    - ntp

- hosts: Fedora
  gather_facts: no
  roles:
    - ntp
    - firewalld

- hosts: Ubuntu
  gather_facts: no
  roles:
    - ntp

- include: mailman.yml
- include: dnsservers.yml
- include: webservers.yml
- include: jenkins-slaves.yml
- include: jenkins-master.yml
- include: developer.yml
- include: localhost.yml
- include: remote.yml
- include: haus.yml

Remove OSX exception on user creation.
Remove OSX exception on user creation.
