From ff654ccfe80ff951590377c5d203929138c4025b Mon Sep 17 00:00:00 2001 From: Ritesh Puj Date: Fri, 31 Aug 2018 01:32:39 +0530 Subject: [PATCH] replaced 'ansible_os_platform' to 'ansible_os_family' (#44676) replaced 'ansible_os_platform' to 'ansible_os_family' as 'ansible_os_platform' variable is no longer available. --- docs/docsite/rst/user_guide/playbooks_reuse_roles.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst b/docs/docsite/rst/user_guide/playbooks_reuse_roles.rst index 673cde9d075..404f563bc31 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: