marcomc.macos_new_user

构建状态

macOS 新用户 Ansible 角色

这个 Ansible 角色在目标 macOS 系统上创建一个新用户。

用于 Splinter,一个针对 macOS 的意见化配置工具

示例剧本

- vars:
    new_user_username:                        "testuser"
    new_user_fullname:                        "测试用户"
    new_user_password_cleartext:              "明文密码" # 目前 Ansible 只能使用明文密码在 macOS 上创建用户
- hosts: localhost
  roles:
  - marcomc.macos_new_user

变量

verbose:                                  no
new_user_username:                        ""
new_user_fullname:                        ""
new_user_shell:                           "/bin/zsh"
new_user_password_cleartext:              ""
new_user_generate_ssh_key:                no
new_user_reset_password_on_login:         yes
new_user_is_admin:                        yes
new_user_update_path_for_all_shell_types: no
new_user_profile_picture_path:            ""
new_user_random_profile_picture:          no
new_user_random_profile_pictures_path:    "{{ playbook_dir }}/files/profile_pictures"
new_user_profile_pictures_filter_formats: 'jpg\|jpeg\|png' # grep 过滤格式

许可协议

MIT

作者 : Marco Massari Calderone (c) 2020 - marco@marcomc.com

关于项目

Ansible role to create a new user in macOS. Also used in Splinter provisioning tool.

安装
ansible-galaxy install marcomc.macos_new_user
许可证
mit
下载
155
拥有者
Biker, tinkerer, Dev Ops something...