titom73.op_deployment

One Password CLI 部署

一个简单的 Ansible 角色,用于在多个平台上部署 one-password cli 管理器。

它支持以下平台的部署:

  • amd64:适用于 x86_64 位处理器
  • arm:适用于 Raspberry Pi3
  • arm64:适用于 Raspberry Pi4

安装

ansible-galaxy collection install titom73.op_deployment

需求

系统必须具有以下二进制文件:

  • wget
  • unzip

角色变量

该角色包含多个不同的变量,具有默认值:

# 配置角色以安装或删除 op 二进制文件
op_deployment_state: present

# 是否强制更新二进制文件,或在已安装时忽略
op_deployment_force_update: true

# 目标平台 (arm/arm64/amd64)
op_deployment_platform: amd64

# 要安装的 one-password cli 版本
op_deployment_version: 'v2.7.2'

此外,您可以修改安装路径:

# 要安装的二进制文件名称
op_deployment_bin: 'op'

# 二进制文件的安装路径
op_deployment_installation_path: '/usr/local/sbin/'

# 完整的二进制文件路径
op_deployment_bin_path: '{{ op_deployment_installation_path }}/{{ op_deployment_bin }}'

# 临时文件系统路径
op_deplyment_tmp: /tmp

依赖

示例剧本

为用户提供关于如何使用此角色的示例(例如,作为参数传递的变量)总是好的:

- name: 安装 One Password CLI 管理器
  hosts: linux_machines
  gather_facts: true
  become: true
  tasks:

    - name: 安装 ONE Password CLI
      tags: [password]
      import_role:
        name: roles/one-password-deploy
      vars:
        op_deployment_platform: 'arm'
        op_deployment_version: 'v2.7.1'

许可证

BSD

作者信息

该角色由 Thomas Grimonet 于 2022 年创建。

关于项目

Provision One Passsword CLI

安装
ansible-galaxy install titom73.op_deployment
许可证
Unknown
下载
102
拥有者
Switch, route and firewall packets but never at line-rate