Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use vault title in field.info module #74

Open
volodymyrZotov opened this issue Apr 14, 2023 · 0 comments
Open

Ability to use vault title in field.info module #74

volodymyrZotov opened this issue Apr 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@volodymyrZotov
Copy link
Contributor

Your environment

Collection Version: 2.2.1

Connect Server Version: 1.5.7

OS: MacOS

Ansible Version: 7.4.0

What happened?

When using vault_title instead of the vault_id in the playbook, the Vault ID invalid or undefined. error is thrown.

What did you expect to happen?

Successfully find item field using vault_title

Steps to reproduce

  1. Run the next playbook
---
- name: "test playbook"
  hosts: localhost
  environment:
    OP_CONNECT_HOST: http://localhost:8080
    OP_CONNECT_TOKEN: "<token>"
  collections:
    - onepassword.connect
  tasks:
    - name: "Field info example"
      field_info:
        item: redis
        vault: title
        field: username
      no_log: false
      register: op_item
  1. See the Vault ID invalid or undefined. is printed.

Notes & Logs

@volodymyrZotov volodymyrZotov added the bug Something isn't working label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant