onepassword

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: onepassword

Role to install (by default) 1password package for Debian based and EL based systems or uninstall (if passed as var) on Debian based and EL based systems.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables List:

# Generic Variables
onepassword_app_name: 1password
onepassword_desired_state: present

# Debian Family Variables
onepassword_pre_reqs_debian:
  - gnupg2
onepassword_pre_reqs_debian_desired_state: present
onepassword_repo_debian_gpg_key_url: https://downloads.1password.com/linux/keys/1password.asc
onepassword_repo_debian_gpg_key_keyring: /usr/share/keyrings/1password-archive-keyring.gpg
onepassword_repo_debian: "deb [arch=amd64 signed-by={{ onepassword_repo_debian_gpg_key_keyring }}] https://downloads.1password.com/linux/debian/amd64 stable main"
onepassword_repo_debian_filename: "{{ onepassword_app_name }}"
onepassword_repo_debian_desired_state: present

# EL Family Variables
onepassword_repo_el_name: 1password
onepassword_repo_el_description: 1Password Stable Channel
onepassword_repo_el: https://downloads.1password.com/linux/rpm/stable/$basearch
onepassword_repo_el_gpg_key: https://downloads.1password.com/linux/keys/1password.asc
onepassword_repo_el_enabled: yes
onepassword_repo_el_filename: "{{ onepassword_app_name }}"
onepassword_repo_el_gpgcheck: yes
onepassword_repo_el_repogpgcheck: yes
onepassword_repo_el_desired_state: present

Variables table:

Variable Description
onepassword_app_name Name of 1Password package to install by default i.e. 1password.
onepassword_desired_state State of the 1password_app_name package (i.e. 1password package itself.). Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present, latest, or absent)
onepassword_pre_reqs_debian Package required by 1Password on Debain based systems.
onepassword_pre_reqs_debian_desired_state State of the 1password_pre_reqs_debian_desired_state packages. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: present, latest, or absent)
onepassword_repo_debian_gpg_key_url 1Password GPG required on Debian based systems.
onepassword_repo_debian_gpg_key_keyring 1Password Keyring file to store GPG key in.
onepassword_repo_debian Repository URL for Debian based systems.
onepassword_repo_debian_filename Name of the repository file that will be stored at /etc/apt/sources.list.d/ on Debian based systems. Defaults to the variable value for "{{ 1password_app_name }}" which is 1password by default.
onepassword_repo_debian_desired_state State of Debian family repository file for 1Password.
onepassword_repo_el_name Repository name for 1Password on EL based systems.
onepassword_repo_el_gpg_key 1Password GPG required on EL based systems.
onepassword_repo_el_description Description to be added in EL based repository file for 1Password.
onepassword_repo_el Repository baseurl for 1Password on EL based systems.
onepassword_repo_el_gpgcheck Boolean for whether to perform gpg check against 1Password on EL based systems.
onepassword_repo_el_repogpgcheck Boolean for whether to perform gpg signature check against on the repodata for 1Password on EL based systems.
onepassword_repo_el_enabled Boolean for whether to set 1Password repo as 'enabled' on EL based systems.
onepassword_repo_el_filename Name of the repository file that will be stored at /etc/yum/sources.list.d/ on EL based systems. Defaults to the variable value for "{{ 1password_app_name }}" which is 1password by default.
onepassword_repo_el_desired_state State of EL family repository file for 1Password.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of 1password package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.onepassword

For customizing behavior of role (for e.g. update to latest available stable version, 1password package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.1password
  vars:
    onepassword_app_name: latest

For customizing behavior of role (for e.g. un-installation of 1password package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.onepassword
  vars:
    onepassword_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

1Password installation on Debian-based and EL-based systems.

Install
ansible-galaxy install darkwizard242/ansible-role-onepassword
GitHub repository
License
mit
Downloads
2488
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!