Forum Discussion

Stalle's avatar
Stalle
New Contributor
12 months ago

1password, Okta and Ansible

Hi, we are using 1password with Okta at work and it allows me to authenticate using Okta and not have any master password.

We also have an ansible playbook to setup our developer environment that we would like to automate using 1password access and shared vaults.

The problem I'm having is that each time I access a secret in my ansible scripts I get a new prompt to authenticate 1password against okta, which is kinda annoying.
I would like to be able to do this once per script.

I've tried using regular ansible command tasks with op, https://docs.ansible.com/ansible/latest/collections/community/general/onepassword_lookup.html and https://docs.ansible.com/ansible/latest/collections/community/general/onepassword_info_module.html and I can't find a combination that remembers the session after the first one.

I can't use the master_password and auto_login of onepassword_info since I do not have a password for my account.

Anyone using Okta and Ansible that can help?


1Password Version: 8.10.44
Extension Version: Not Provided
OS Version: Ubuntu 22.04
Browser: Chrome

1 Reply

  • Stalle's avatar
    Stalle
    New Contributor

    I'm using the "Integrate with 1password CLI" settings in the app if that has anything to do with it.
    I'm not sure if there is another way to use Okta authentication from the cli that would work better