Skip to content

Commit

Permalink
feat(local_system_user): create local system user ansible role (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
smirta authored Jun 7, 2024
1 parent df7974a commit 355e3b7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Contains common roles and playbooks.
* [`core`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/core)
* [`base`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/base)
* [`files`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/files) (for quick and dirty file management)
* [`local-system-user`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/local-system-user) (for local system user creation)
* [`local_system_user`](https://github.com/radiorabe/ansible-collection-common/tree/main/roles/local_system_user) (for local system user creation)

## License

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ansible Role - radiorabe.common.local-system-user
# Ansible Role - radiorabe.common.local_system_user

Manage local system users using [`ansible.builtin.user module`](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html). Shell or password won't be set with this role.

Expand All @@ -25,10 +25,10 @@ Including an example of how to use your role (for instance, with variables passe
```yaml
- hosts: all
roles:
- role: radiorabe.common.local-system-user
- role: radiorabe.common.local_system_user
vars:
username: local-sys
- role: radiorabe.common.local-system-user
- role: radiorabe.common.local_system_user
vars:
username: virtualizer
home_directory: /var/lib/libvvirt/images/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# defaults for radiorabe.common.local-system-user
# defaults for radiorabe.common.local_system_user

home_directory: '/home/{{username}}'
usergroups: ''
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# tasks file for radiorabe.common.local-system-user
# tasks file for radiorabe.common.local_system_user

- name: 'RaBe Base : Local System User : Add user {{ username }} with groups {{ usergroups }} and user home {{ home_directory }}.'
ansible.builtin.user:
Expand Down

0 comments on commit 355e3b7

Please sign in to comment.