Hello,

I am facing an issue while invoking packet.net from Ansible.

https://docs.ansible.com/ansible/packet_device_module.html
https://github.com/ngrewe/packet-python/tree/ansible

below is my playbook file

- name: create 1 device
  hosts: localhost
  tasks:
  - packet_device:
      project_id: <my_project_id>
      auth_token: <my_auth_token>
      hostnames: myserver
      operating_system: ubuntu_16_04
      plan: baremetal_0
      facility: sjc1

And when try to run I see below error:

root@virtual-machine:~# ansible-playbook play.yml --check
ERROR! no action detected in task. This often indicates a misspelled module 
name, or incorrect module path.

The error appears to have been in '/home/test/play.yml': line 4, column 5, 
but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
  - packet_device:
    ^ here

I have installed python packet and my python version is greater than 2.6

Any help would appreciated.

-- 
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/40f09359-691b-4c7f-a42a-dfe28050da92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to