[ansible] added
This commit is contained in:
40
ansible/roles/user/tasks/main.yml
Normal file
40
ansible/roles/user/tasks/main.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
# barin
|
||||
- name: Make barin group
|
||||
group:
|
||||
name: barin
|
||||
state: present
|
||||
|
||||
- name: Make barin user
|
||||
user:
|
||||
name: barin
|
||||
group: barin
|
||||
password: '$6$mbw5KZWwtrRUy$eFcMNTW.QzG1Em45r5hZf/qri4hKAHImozWuW4/pYnDK.tOrVKrXTKYfRDtYEFRgCgVVg0zuPvyq/xn0KiKlz0'
|
||||
groups: www-data,sudo,adm
|
||||
|
||||
- name: Set up authorized_keys for the barin user
|
||||
authorized_key:
|
||||
user: barin
|
||||
key: '{{ item }}'
|
||||
with_file:
|
||||
- keys/shmyga.pub
|
||||
|
||||
|
||||
# holop
|
||||
- name: Make holop group
|
||||
group:
|
||||
name: holop
|
||||
state: present
|
||||
|
||||
- name: Make holop user
|
||||
user:
|
||||
name: holop
|
||||
group: holop
|
||||
password: '$6$B/7g0xlcXFCIHk$hzSjb8KLll7YrTsp3z640sxNixNAkLpm6UUdZgWPh0Ffy7Ue18AiXTzkDdGTaTH6Woz4kvgVDSggnKGTU6u03.'
|
||||
groups: www-data
|
||||
|
||||
- name: Set up authorized_keys for the holop user
|
||||
authorized_key:
|
||||
user: holop
|
||||
key: '{{ item }}'
|
||||
with_file:
|
||||
- keys/shmyga.pub
|
||||
Reference in New Issue
Block a user