- name: Install packages package: name: - sudo state: present - include: tasks/freebsd.yaml when: 'os_flavor == "freebsd"' - include: tasks/linux.yaml when: 'os_flavor == "linux"'