Skip to content

honeylogic-io/ansible-role-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published