darkwizard242.onepassword
Ansible Role: onepassword
This role installs (by default) the 1password software on Debian and EL-based systems. It can also uninstall it if specified.
Requirements
No special requirements needed.
Role Variables
The available variables can be found in defaults/main.yml
:
Variable List:
# General Variables
onepassword_app_name: 1password
onepassword_desired_state: present
# Debian 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 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
Variable Descriptions:
Variable | Description |
---|---|
onepassword_app_name | The name of the package to install, default is 1password . |
onepassword_desired_state | State of the package (install, check if available, or uninstall). For example: present , latest , or absent . |
onepassword_pre_reqs_debian | Required packages for 1Password on Debian systems. |
onepassword_pre_reqs_debian_desired_state | Desired state for required packages on Debian. |
onepassword_repo_debian_gpg_key_url | GPG key URL required for 1Password on Debian systems. |
onepassword_repo_debian_gpg_key_keyring | Location for GPG key storage. |
onepassword_repo_debian | Repository URL for Debian systems. |
onepassword_repo_debian_filename | Name of the repository file for Debian, defaults to 1password . |
onepassword_repo_debian_desired_state | Desired state for the Debian repository file for 1Password. |
onepassword_repo_el_name | Name of the repository for 1Password on EL-based systems. |
onepassword_repo_el_gpg_key | GPG key required for 1Password on EL-based systems. |
onepassword_repo_el_description | Description for the EL repository file. |
onepassword_repo_el | Base URL for the EL repository of 1Password. |
onepassword_repo_el_gpgcheck | Set to perform GPG check on EL-based systems. |
onepassword_repo_el_repogpgcheck | Set to perform GPG signature check on EL repository data. |
onepassword_repo_el_enabled | Set to enable the 1Password repository on EL-based systems. |
onepassword_repo_el_filename | Name of the repository file for EL, defaults to 1password . |
onepassword_repo_el_desired_state | Desired state for the EL repository file for 1Password. |
Dependencies
None.
Example Playbook
To install the 1password package by default in Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.onepassword
To customize the playbook (for example, to update to the latest stable version of the 1password package):
- hosts: servers
roles:
- darkwizard242.onepassword
vars:
onepassword_app_name: latest
To uninstall the 1password package:
- hosts: servers
roles:
- darkwizard242.onepassword
vars:
onepassword_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
1Password installation on Debian-based and EL-based systems.
Installa
ansible-galaxy install darkwizard242.onepassword
Licenza
mit
Download
2.9k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!