-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unused register * Document & Test adding a user to multiple groups https://github.com/CSCfi/ansible-role-users/blob/fc7d13287660ed1f07965ba331850966c62c99ac/tasks/main.yml usermod supports multiple groups, but they should be comma separated. Skip the usermod commands if groups is not a string. Another option would be to early in the role assert that groups is a string or not a list and then fail. This part is not so well tested. I think one could with some backwards breaking? changes make the role work with `groups` being a real yaml list also. `|join(',')` jinja2 filter could be one option The ansible users module supports `groups` being a list after ansible 2.3. Around this point you should really start considering using a central user directory like LDAP... Bonus change: - Add the remaining `] }` to the multi SSH user definition example. * test: Test a user with a list of groups
- Loading branch information
1 parent
bd6eb88
commit 3db3e07
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters