diff --git a/docsite/latest/rst/playbooks2.rst b/docsite/latest/rst/playbooks2.rst index db48b32d72..619a6aa7bf 100644 --- a/docsite/latest/rst/playbooks2.rst +++ b/docsite/latest/rst/playbooks2.rst @@ -728,7 +728,7 @@ The 'register' keyword decides what variable to save a result in. The resulting register: motd_contents - action: shell echo "motd contains the word hi" - when: motd_contents.find('hi') != -1 + when: motd_contents.stdout.find('hi') != -1 Rolling Updates