diff --git a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst index 673cde9d07..404f563bc3 100644 --- a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst +++ b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst @@ -46,9 +46,9 @@ Other YAML files may be included in certain directories. For example, it is comm # roles/example/tasks/main.yml - name: added in 2.4, previously you used 'include' import_tasks: redhat.yml - when: ansible_os_platform|lower == 'redhat' + when: ansible_os_family|lower == 'redhat' - import_tasks: debian.yml - when: ansible_os_platform|lower == 'debian' + when: ansible_os_family|lower == 'debian' # roles/example/tasks/redhat.yml - yum: