passbolt / lab-passbolt-ansible-collection

Source repository for https://galaxy.ansible.com/anatomicjc/passbolt
MIT No Attribution
9 stars 10 forks source link

Plugin not found #3

Closed br0nsky closed 2 years ago

br0nsky commented 2 years ago

Hi, I tried using the Ansible lookup plugin but it appears it can't find it even though it seems to be installed properly. I tried following this article but no luck.

Here is my task :

- ansible.builtin.command: "{{ lookup('passbolt', 'test') }}"
  environment:
    PASSBOLT_BASE_URL: "https://passbolt.domain.com"
    PASSBOLT_PRIVATE_KEY: "{{ lookup('ansible.builtin.file', '~/private_key') }}"
    PASSBOLT_PASSPHRASE: "XXXXXXXXXX"

I tried "{{ lookup(passbolt, 'test') }}" , "{{ lookup('passbolt', 'test') }}","{{ lookup('anatomicjc.passbolt', 'test') }}" etc. but it kept giving me this error :

{"msg": "lookup plugin (passbolt) not found"}

Do you have an idea ?

Thanks in advance.

br0nsky commented 2 years ago

Nevermind , i finally found the actual passbolt plugin name here. Maybe the blog post needs to be updated with the right lookup plugin name.

AnatomicJC commented 2 years ago

Hi @br0nsky,

As you noticed, I created a passbolt variable to handle the full plugin name. I tried to edit the post but as I don't work anymore at passbolt, I can't edit it anymore. However, I still maintain this collection and merged this morning a contribution. I will contact the passbolt team to let them edit the blog post.

Thank you for reporting this BTW.

Best,

br0nsky commented 2 years ago

Hi, Thanks for answering and for your plugin of course. Hope this will help people too.

AnatomicJC commented 2 years ago

Hi @br0nsky ,

Just FYI, I updated the blog post and added a note about the plugin name to be used.

We will use below a passbolt variable for convenience. The full plugin name to be used is ‘anatomicjc.passbolt.passbolt’ . You can have a look at our ansible playbook example.

https://medium.com/passbolt/managing-secrets-in-ansible-using-passbolt-87af031ceab6

br0nsky commented 2 years ago

Hi,

Awesome ! Thanks for the update, appreciate it !