I am trying to create a resource group in Azure using Ansible. However, I am getting the following error:
ERROR! no action detected in task
The error appears to have been in '/home/alam/azure/rg.yml': line 6, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
  tasks:
    - azure_rm_resourcegroup:
      ^ here
Here is my yml playbook:
- name: Test the inventory script  
  hosts: azure   
  connection: local  
  gather_facts: no  
  tasks:  
    - name: "Create a resource group"  
      azure_rm_resourcegroup:   
        location: westus  
        name: Testing  
        state: present  
        tags:   
          delete: never  
          testing: testing