- name: install coreutils
  homebrew:
      name: coreutils
      state: present
  when: ansible_distribution == "macosx"

- name: install coreutils
  become: yes
  apt:
      name: coreutils
      state: present
  when: ansible_os_family == "Debian"

- name: install coreutils
  become: yes
  pkgng:
      name: coreutils
      state: present
  when: ansible_distribution == "FreeBSD"

- name: install coreutils
  homebrew:
      name: coreutils
      state: present
  when: ansible_distribution == "MacOSX"

- name: install coreutils
  become: yes
  apt:
      name: coreutils
      state: present
  when: ansible_os_family == "Debian"

- name: install coreutils
  become: yes
  pkgng:
      name: coreutils
      state: present
  when: ansible_distribution == "FreeBSD"

Set correct ansible_distribution value in coreutils role
Set correct ansible_distribution value in coreutils role
