Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 944 Bytes

README.md

File metadata and controls

56 lines (42 loc) · 944 Bytes

ansible-role-users Build Status

An opinionated role on managing unix users.

Role Variables

user_shell: /bin/zsh

The default shell when not specified.

user_groups: [sudo, docker]

The default user groups when not specified.

user_passwordless_sudo: true

Passwordless sudo by default.

To override the defaults set the variable without the user_ prefix for each user. E.g

- role: ansible-role-users
  vars:
    users:
      - name: dani
        ssh_public_key: XXXX
        groups: [developers]
        passwordless_sudo: false

Example Playbook

- hosts: servers
  roles:
    - role: ansible-role-users
      vars:
        users:
          - name: dani
            ssh_public_key: XXXX

License

MIT