Installing loki docker plugin using ansible = error

I have been trying to install loki docker plugin using ansible playbook.

Ansible has this function to install plugins:

    - name: Install Loki Docker Driver
        plugin_name: grafana/loki-docker-driver:latest
        alias: loki
        state: enable

In the loki plugin doc the command is:

docker plugin install grafana/loki-docker-driver:2.8.2 --alias loki --grant-all-permissions

There is a --grant-all-permissions flag that cannot be set when installing in ansible.

Is it a bug, missing functionality ?


According to docker_plugin add the ability to specify install options · Issue #145 · ansible-collections/community.docker · GitHub --grant-all-permissions is the default.

1 Like

Thanks, @tonyswumac
Then there must be another reason why the plugin is not installed correctly.