Class: Ansible::Ruby::Modules::Onepassword_facts

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/identity/onepassword_facts.rb

Overview

M(onepassword_facts) wraps the C(op) command line utility to fetch data about one or more 1password items and return as Ansible facts. A fatal error occurs if any of the items being searched for can not be found. Recommend using with the C(no_log) option to avoid logging the values of the secrets being retrieved.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#auto_loginObject?

Returns A dictionary containing authentication details. If this is set, M(onepassword_facts) will attempt to login to 1password automatically.,The required values can be stored in Ansible Vault, and passed to the module securely that way.,Without this option, you must have already logged in via the 1Password CLI before running Ansible.

Returns:

  • (Object, nil)

    A dictionary containing authentication details. If this is set, M(onepassword_facts) will attempt to login to 1password automatically.,The required values can be stored in Ansible Vault, and passed to the module securely that way.,Without this option, you must have already logged in via the 1Password CLI before running Ansible.



18
# File 'lib/ansible/ruby/modules/generated/identity/onepassword_facts.rb', line 18

attribute :auto_login

#cli_pathString?

Returns Used to specify the exact path to the C(op) command line interface.

Returns:

  • (String, nil)

    Used to specify the exact path to the C(op) command line interface



21
# File 'lib/ansible/ruby/modules/generated/identity/onepassword_facts.rb', line 21

attribute :cli_path

#search_termsString, ...

Returns A list of one or more search terms.,Each search term can either be a simple string or it can be a dictionary for more control.,When passing a simple string, I(field) is assumed to be C(password).,When passing a dictionary, the following fields are available.

Returns:

  • (String, Array<Hash>, Hash)

    A list of one or more search terms.,Each search term can either be a simple string or it can be a dictionary for more control.,When passing a simple string, I(field) is assumed to be C(password).,When passing a dictionary, the following fields are available.



14
# File 'lib/ansible/ruby/modules/generated/identity/onepassword_facts.rb', line 14

attribute :search_terms