Host Setup, User Setup, SSH Configuration
This commit is contained in:
parent
78bf4efed1
commit
0402882891
5 changed files with 116 additions and 0 deletions
28
tasks/users.yml
Normal file
28
tasks/users.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
# NibTech::Host::Tasks::users
|
||||
# This role does host setup
|
||||
# This task configures users, groups, and permissions
|
||||
# Role repository:
|
||||
---
|
||||
|
||||
- name: Configure Service Group
|
||||
ansible.builtin.group:
|
||||
name: "nibtech"
|
||||
state: "present"
|
||||
|
||||
- name: Configure Ansible Deploy User
|
||||
ansible.builtin.user:
|
||||
name: "nibtech-deploy"
|
||||
system: true
|
||||
group: "nibtech"
|
||||
shell: "/bin/bash"
|
||||
create_home: true
|
||||
home: "/opt/ansible"
|
||||
|
||||
- name: Configure NibTech Admin User
|
||||
ansible.builtin.user:
|
||||
name: "nibtech-admin"
|
||||
append: true
|
||||
groups: "['wheel','nibtech']"
|
||||
shell: "/bin/bash"
|
||||
create_home: true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue