ansible-dokku icon indicating copy to clipboard operation
ansible-dokku copied to clipboard

dokku_ports doesn't use the new 0.31+ ports commands, thus crashes

Open laurenskling opened this issue 8 months ago • 3 comments

Description of problem

fatal: [xxx.myserver.xxx]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "app": "myapp",
            "mappings": [
                "http:80:1337",
                "https:443:1337"
            ],
            "state": "present"
        }
    },
    "meta": {
        "error": "Command 'dokku --quiet proxy:ports-set myapp http:80:1337 https:443:1337' returned non-zero exit status 1.",
        "present": false
    },
    "msg": "Command 'dokku --quiet proxy:ports-set myapp http:80:1337 https:443:1337' returned non-zero exit status 1."
}

So manually on my server, I reproduce:

myuser@myserver:~# dokku proxy:ports-set myapp http:80:1337 https:443:1337
 !     Invalid plugin subcommand call: ports-set

this is because ports management changed in 0.31: https://dokku.com/docs/networking/port-management/

How reproducible

use dokku 0.31+, use ansible dokku_ports

Environment Information

this command fails :/ sorry

How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:

I installed Dokku on a VPS and trying to get ansible to install my projects

laurenskling avatar Dec 14 '23 08:12 laurenskling