-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update all role vars to match current ansible requirements
fix: update README with up-to-date vars and playbook example fix: remove all default values - these were unsafe fix: add basic support for Ansible Check mode
- Loading branch information
Showing
6 changed files
with
48 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,2 @@ | ||
--- | ||
# defaults file for users | ||
|
||
usersandgroups_users: | ||
# Adding a user | ||
- username: "username" | ||
state: present | ||
fname: "user" | ||
sname: "name" | ||
email: [email protected] | ||
password: 'set using openssl passwd -6' | ||
sudo: true | ||
groups: | ||
- "grouphere" | ||
sshkeys: | ||
- 'copypaste ssh key' | ||
- 'or use file read' | ||
|
||
# Removing a user | ||
- username: "another.user" | ||
state: absent | ||
|
||
# Managing Groups | ||
usersandgroups_groups: | ||
- name: "dcinfra" | ||
state: present |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
hosts: localhost | ||
remote_user: root | ||
roles: | ||
- usersandgroups | ||
- localusergroup |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
# vars file for users | ||
|
||
_usersandgroups_sudo_group_logic: | ||
_localusergroup_sudo_group_logic: | ||
Debian: | ||
- 'sudo' | ||
- 'adm' | ||
RedHat: | ||
- 'wheel' | ||
usersandgroups_sudo_group: "{{ _usersandgroups_sudo_group_logic[ansible_os_family] }}" | ||
localusergroup_sudo_group: "{{ _localusergroup_sudo_group_logic[ansible_os_family] }}" |