On 11. mars 2017 00:08, Frank Montyne wrote:
I installed the Azure Python SDK 2.0.0rc5 using pip and ansible 2.0.0.2
using apt on a Ubuntu 16.04 machine. I also created a Azure AD service
principle and added the information to ~/.azure/credentials. When I try to
run a playbook that uses one of the Azure rm module I always get the same
error.

For example when I run the following playbook :
===============================================
- name: Test playbook
  hosts: localhost
  connection: local
  gather_facts: False
  tasks:
  - name: GetFacts
    azure_rm_virtualnetwork_facts:
      subscription_id: 11111111-1111-111111111-111111111111
      resource_group: ansible-test
===============================================

*ansible-playbook test.yml*
ERROR! no action detected in task

The error appears to have been in '/data/ansible/playbooks/tests/test.yml':
line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
  - name: GetFacts
    ^ here

I have no idea why I get this error, all help is greatly appreciated!

On top of the documentation
https://docs.ansible.com/ansible/azure_rm_virtualnetwork_facts_module.html
it says "New in version 2.1."

But you are using Ansible 2.0.

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b95cf190-0736-43e2-ebd2-464f8d165116%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to