I am not able to run Azure Playbooks from AWX. Below is the error i am getting while executing . Please help.
ansible-playbook 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/var/lib/awx/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python3.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.6.8 (default, Oct 7 2019, 17:58:22) [GCC 8.2.1 20180905 (Red Hat 8.2.1-3)]
Using /etc/ansible/ansible.cfg as config file
[WARNING]: While constructing a mapping from
/tmp/awx_19427_ctyas766/project/azure_vm_add_disk.yml, line 61, column 7, found
a duplicate dict key (when). Using last defined value only.
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to be in ‘/tmp/awx_19427_ctyas766/project/azure_vm_add_disk.yml’: line 45, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Get facts for one managed disk
^ here
Thanks,
Saket