dokku / ansible-dokku

Ansible modules for installing and configuring Dokku
MIT License
169 stars 44 forks source link

If plugins already installed, plugin:install fails #59

Closed decentral1se closed 4 years ago

decentral1se commented 4 years ago

Don't have logs now but ran into this. On install.

decentral1se commented 4 years ago

Logs:

TASK [dokku_bot.ansible_dokku : dokku:plugin install] ***********************************************************************************************
task path: /home/decentral1se/work/foobar/infrastructure/roles/dokku_bot.ansible_dokku/tasks/main.yml:25
failed: [foobar-dokku] (item={'name': 'letsencrypt', 'url': 'https://github.com/dokku/dokku-letsencrypt.git'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["dokku", "plugin:install", "https://github.com/dokku/dokku-letsencrypt.git", "--name", "letsencrypt"], "delta": "0:00:00.152770", "end": "2020-04-01 12:53:20.787553", "item": {"name": "letsencrypt", "url": "https://github.com/dokku/dokku-letsencrypt.git"}, "msg": "non-zero return code", "rc": 128, "start": "2020-04-01 12:53:20.634783", "stderr": "fatal: destination path 'letsencrypt' already exists and is not an empty directory.", "stderr_lines": ["fatal: destination path 'letsencrypt' already exists and is not an empty directory."], "stdout": "-----> Cloning plugin repo https://github.com/dokku/dokku-letsencrypt.git to /var/lib/dokku/plugins/available/letsencrypt", "stdout_lines": ["-----> Cloning plugin repo https://github.com/dokku/dokku-letsencrypt.git to /var/lib/dokku/plugins/available/letsencrypt"]}
failed: [foobar-dokku] (item={'name': 'ansible-playbook', 'url': 'https://git.foobar.zone/foobar-cooperative/dokku-ansible-playbook'}) => {"ansible_loop_var": "item", "changed": true, "cmd": ["dokku", "plugin:install", "https://git.foobar.zone/foobar-cooperative/dokku-ansible-playbook", "--name", "ansible-playbook"], "delta": "0:00:00.118520", "end": "2020-04-01 12:53:21.604811", "item": {"name": "ansible-playbook", "url": "https://git.foobar.zone/foobar-cooperative/dokku-ansible-playbook"}, "msg": "non-zero return code", "rc": 128, "start": "2020-04-01 12:53:21.486291", "stderr": "fatal: destination path 'ansible-playbook' already exists and is not an empty directory.", "stderr_lines": ["fatal: destination path 'ansible-playbook' already exists and is not an empty directory."], "stdout": "-----> Cloning plugin repo https://git.foobar.zone/foobar-cooperative/dokku-ansible-playbook to /var/lib/dokku/plugins/available/ansible-playbook", "stdout_lines": ["-----> Cloning plugin repo https://git.foobar.zone/foobar-cooperative/dokku-ansible-playbook to /var/lib/dokku/plugins/available/ansible-playbook"]}

Gonna fix this now...

decentral1se commented 4 years ago

See https://github.com/dokku/ansible-dokku/pull/60 :wave:

atnartur commented 4 years ago

Already fixed at https://github.com/dokku/ansible-dokku/pull/58. Please get the latest update from Ansible Galaxy

decentral1se commented 4 years ago

Oh excellent! Thanks @atnartur, I will check now. Closing optimistically :)