onepassword.connect with self-signed certificate
GordonShumway
Community Member
Hi,
I'm trying to use 1password ansible collection to create a secret in my vault from an ansible playbook.
I use the example from the official documentation : https://developer.1password.com/docs/connect/ansible-collection/
Unfortunately, my connect-server-api is protected with a self-signed certificate and the playbook return the following error :msg: 'Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)>'
Is there a way to configure the module to accept self-signed certificate while accessing the connect-server-api ?
Thank you for your help
The playbook:
- name: Update a 1Password Secret
hosts: localhost
vars:
connect_token: "" # Set the Connect server token
environment:
OP_CONNECT_HOST:# Set the Connect server hostname
OP_VAULT_ID: "" # Set the 1Password vault ID
collections:
- onepassword.connect # Specify the 1Password collection
tasks:
- onepassword.connect.generic_item:
token: "{{ connect_token }}" # Pass the Connect server token variable
title: Club Membership
# uuid: 1ff75fa9fexample -- or use an Item ID to locate an item instead
state: present
fields:
- label: Codeword
field_type: concealed- label: Dashboard Password
generate_value: always # Generate a new value every time the playbook runs
generator_recipe: # Provide a custom password recipe
length: 16
include_symbols: no
no_log: true # Turn off logs to avoid logging sensitive data"
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided
0