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