gantsign.atom

Ansible 角色:Atom

测试 Ansible Galaxy 许可证

此角色用于通过 GitHub 安装 atom.io 文本编辑器。

需求

  • Ansible >= 2.9

  • Linux 发行版

    • Debian 家族

      • Ubuntu

        • Bionic (18.04)
        • Focal (20.04)
      • 注意:其他版本可能可以使用,但未经过测试。

角色变量

以下变量会改变此角色的行为(默认值如下所示):

# 要为其安装软件包和/或写入 config.cson 的用户
users: []

用户配置如下:

users:
  - username: # Unix 用户名
    atom_packages:
      - # 软件包 1
      - # 软件包 2
    atom_config: # 配置(使用 YAML 而不是 CSON)
    atom_config_overwrite: yes # 默认情况下,配置文件不会被覆盖

示例剧本

最小剧本:

- hosts: servers
  roles:
    - role: gantsign.atom

包含安装的软件包和配置的剧本:

- hosts: servers
  roles:
    - role: gantsign.atom
      users:
        - username: vagrant
          atom_packages:
            - minimap
            - linter
            - atom-beautify
            - file-icons
          atom_config:
            '*':
              core:
                projectHome: '/home/vagrant/workspace'
              editor:
                showIndentGuide: true
                showInvisibles: true

更多 GantSign 的角色

您可以在 Ansible Galaxy找到更多 GantSign 的角色。

开发与测试

该项目使用 Molecule 来帮助开发和测试;角色使用 Testinfrapytest 进行单元测试。

要进行开发或测试,您需要安装以下软件:

由于上述软件的安装可能会有些复杂,该项目包含了 Molecule Wrapper。Molecule Wrapper 是一个 shell 脚本,它会安装 Molecule 及其依赖(除了 Linux),然后执行您传递的命令运行 Molecule。

要使用 Molecule Wrapper 测试此角色,请在项目根目录下运行以下命令:

./moleculew test

注意:某些依赖需要 sudo 权限进行安装。

许可证

MIT

作者信息

约翰·弗里曼

GantSign 有限公司。 公司编号:06109112(在英格兰注册)

关于项目

Role for installing the atom.io editor.

安装
ansible-galaxy install gantsign.atom
许可证
mit
下载
5k
拥有者