Issue in 2.5.0rc1 with digital_ocean module: "Server was unable to give you a response"

13 views
Skip to first unread message

Denise Draper

unread,
Mar 6, 2018, 2:58:48 AM3/6/18
to Ansible Project
Hi ---

Previously working command isn't working as of tonight.   I'm pretty sure it did previously work after I upgraded to ansible 2.5.0rc1, but I could be wrong about that.   The specific and the response are below.  I think the "Server was unable to give you a response" message can occur whenever the payload is malformed; I don't know if it may also occur for other reasons.

So questions: (a) is this a known issue, and (b) if it is caused by changes in digital ocean API, what is the right way to keep up to date on this?


 The command is the following (executed on localhost):

  - name: initialize the master ssh key
    digital_ocean:
      state: present
      command: ssh
      # key name in digitalocean
      name: BRIDGE
      ssh_pub_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
      api_token: "{{do_token }}"
    register: ssh_key

The error I get out is:

2018-03-06 07:13:38,227 p=12171 u=root |  fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "api_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "backups_enabled": false,
            "command": "ssh",
            "id": null,
            "image_id": null,
            "ipv6": false,
            "name": "BRIDGE",
            "private_networking": false,
            "region_id": null,
            "size_id": null,
            "ssh_key_ids": null,
            "ssh_pub_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWPb5WDFwtGNokgfz5oNQEgrFq7L95C298ZTUmKAqeUdEuyZWKktOSLdT1OGFg0AnZzFV3N0PcfBft66MF09KpY2eL8GX8CWBwlrV0g7eGSS6RJY34vcLt0PfnADLEwvrSh3xP8YI/OWYBe295o8dBM/eETc8S074+9DdFN3zzbqr9a5VFYJMMZIh8hFUopiFnqh3pfMf7CivwQaF+ak4jbEPNl6gn/Op+pLHj9xE/t3kLsCJGo66VmRHiBSMN+FH7GmiZb9KXgkwWAfsS9ozha+RyCZBsmSwVn2GbITgiBHy+y06v65qdiqTXercZYdC2gXosKMkOLyDMg/0MVXkL root@bridge",
            "state": "present",
            "unique_name": false,
            "user_data": null,
            "virtio": true,
            "wait": true,
            "wait_timeout": 300
        }
    },
    "msg": "Server was unable to give you a response."
Reply all
Reply to author
Forward
0 new messages