-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Greetings @zbal ,
I am hitting an issue with dopy where it throws a NameError: name 'DoError' is not defined.
Here is what I am doing...
Playbook: 'digitalocean.yml'
---
- hosts: digitalocean
vars:
do_token: '<###api-token-removed###>'
droplets:
- droplet-one
- droplet-two
tasks:
...
- name: ensure key exists at DigitalOcean
digital_ocean:
state=present
command=ssh
name=my_ssh_key
ssh_pub_key={{ lookup('file', '~/.ssh/id_rsa.pub') }}
api_token={{ do_token }}
register: my_ssh_key
...
Running ansible playbook in verbose mode:
$ ansible-playbook digitalocean.yml -vvv
...
<localhost> PUT /var/folders/v1/by8l5ggn4ns9807gmry4vcjc0000gn/T/tmpJdHJ9o TO /Users/chris/.ansible/tmp/ansible-tmp-1471407681.76-24571883284830/digital_ocean
<localhost> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /Users/username/.ansible/tmp/ansible-tmp-1471407681.76-24571883284830/digital_ocean; rm -rf "/Users/username/.ansible/tmp/ansible-tmp-1471407681.76-24571883284830/" > /dev/null 2>&1 && sleep 0'
The next line shows this Error:
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/var/folders/v1/by8l5ggn4ns9807gmry4vcjc0000gn/T/ansible_z8mUWU/ansible_module_digital_ocean.py", line 187, in <module>
class TimeoutError(DoError):
NameError: name 'DoError' is not defined
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "digital_ocean"}, "module_stderr": "Traceback (most recent call last):\n File \"/var/folders/v1/by8l5ggn4ns9807gmry4vcjc0000gn/T/ansible_z8mUWU/ansible_module_digital_ocean.py\", line 187, in <module>\n class TimeoutError(DoError):\nNameError: name 'DoError' is not defined\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
I am not sure how to debug this further. Any suggestions?
Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels