- name: play1
  hosts: localhost
  pre_tasks:
    - name: play1 | pre_block1
      debug:
        msg: echo "hello world"
  tasks:
    - name: play1 | block1
      block:
        - name: play1 | block1 | block1
          debug:
            msg: echo "hello world"
        - name: play1 | block1 | block2
          debug:
            msg: echo "hello world"
    - name: play1 | block2
      debug:
        msg: echo "hello world"
  post_tasks:
    - name: play1 | post_block1
      debug:
        msg: echo "hello world"
  roles:
    - role1
- name: play2
  hosts: localhost
  tasks:
    - name: play2 | block1
      debug:
        msg: echo "hello world"
