dokku / ansible-dokku

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

How should I configure HTTP Basic Auth? #133

Closed fr3fou closed 2 years ago

fr3fou commented 2 years ago

I have to protect some internal tools like loki and would like to use the https://github.com/dokku/dokku-http-auth plugin. I can easily install it via the dokku_plugins module / library, but how am I supposed to enable it per app using Ansible? Running the commands directly using the command module seems like a workaround and I'd like to know what's the recommended way to achieve this.

ltalirz commented 2 years ago

For any plugin, if there's no ansible module, either one needs to use command/shell or someone needs to write one ;-) Always welcome, of course

fr3fou commented 2 years ago

If I were to write one, how should I ensure the plugin is installed?

ltalirz commented 2 years ago

For the tests you mean?

See the edits to converge.yml in this PR that adds modules for the dokku-acl plugin