--- # Define users and groups per OS type. - name: General | Facts | User | Linux set_fact: root_group: root when: ansible_system == "Linux" - name: General | Facts | User | FreeBSD set_fact: root_group: wheel when: ansible_system == "FreeBSD"