title: Ansible - malformed block was encountered while loading a block
body: <p>trying to run a playbook:</p>
  
  <pre><code>---
  - name: azure authorization
    hosts: localhost
    become: yes
    gather_facts: true
    tasks: 
      - azure_authorization_configuration
  </code></pre>
  
  <p>where task look like:</p>
  
  <pre><code>---
  - name:
    stat: &gt;
      path="{{ azure_subscription_authorization_configuration_file_dir }}"
    register: stat_dir_result
    tags:
      - azure
  </code></pre>
  
  <p>and defaults main file look like:</p>
  
  <pre><code>---
  azure_subscription_authorization_configuration_file_dir: '~/.azure/'
  </code></pre>
  
  <p>Directories tree look like:</p>
  
  <pre><code>├── hosts
  ├── playbooks
  │   └── azure_authorization_playbook.yml
  ├── roles
  │   ├── az_auth
  │   │   ├── defaults
  │   │   │   └── main.yml
  │   │   └── tasks
  │   │       └── main.yml
  </code></pre>
  
  <p>Ansible version: 2.9.1
  Ansible playbook command line snippet:</p>
  
  <pre><code>/&gt; ansible-playbook "/Users/user/Dev/Ansible/playbooks/azure_authorization_playbook.yml"
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[WARNING]: No inventory was parsed, only implicit localhost is available
  
  [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
  
  ERROR! A malformed block was encountered while loading a block
  </code></pre>
  
  <p>Don't have any idea which block was encountered while loading a which block, can anyone tell me where is the issue? Thanks!</p>