diff --git a/docs/docsite/rst/playbook_guide/playbooks_blocks.rst b/docs/docsite/rst/playbook_guide/playbooks_blocks.rst index c521ff7e3b..523928bc5b 100644 --- a/docs/docsite/rst/playbook_guide/playbooks_blocks.rst +++ b/docs/docsite/rst/playbook_guide/playbooks_blocks.rst @@ -20,6 +20,7 @@ All tasks in a block inherit directives applied at the block level. Most of what tasks: - name: Install, configure, and start Apache + when: ansible_facts['distribution'] == 'CentOS' block: - name: Install httpd and memcached ansible.builtin.yum: @@ -38,7 +39,6 @@ All tasks in a block inherit directives applied at the block level. Most of what name: bar state: started enabled: True - when: ansible_facts['distribution'] == 'CentOS' become: true become_user: root ignore_errors: true