Lots of updated roles
This commit is contained in:
@@ -41,6 +41,6 @@
|
||||
ssh_info: ""
|
||||
add_sudo: no
|
||||
create: yes
|
||||
ssh_keys: yes
|
||||
ssh_authorize: no
|
||||
ssh_keys: no
|
||||
ssh_authorize: yes
|
||||
|
||||
|
||||
@@ -7,5 +7,4 @@
|
||||
- "ID: {{ users[user]['id'] }}"
|
||||
- "GID: {{ users[user]['gid'] }}"
|
||||
- "Groups: {{ user_groups }}"
|
||||
- "Password: {{ users[user]['password'] }}"
|
||||
#- "{{ network['netmask'] }}"
|
||||
#- "Password: {{ users[user]['password'] }}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# Create users ~/.ssh directory
|
||||
- name: Creating {{ user }} ~/.ssh directory
|
||||
- name: Creating {{ user }} ~/.ssh directoryxx
|
||||
file:
|
||||
path: '{{ "~" + user | expanduser }}/.ssh'
|
||||
state: directory
|
||||
@@ -26,7 +26,7 @@
|
||||
dest: '{{ "~" + user | expanduser }}/.ssh/id_rsa.pub'
|
||||
owner: '{{ user }}'
|
||||
group: '{{ user }}'
|
||||
mode: 0644
|
||||
mode: '0644'
|
||||
when: ssh_keys|default(false)|bool
|
||||
|
||||
# Create users private key
|
||||
@@ -36,5 +36,5 @@
|
||||
dest: '{{ "~" + user | expanduser }}/.ssh/id_rsa'
|
||||
owner: '{{ user }}'
|
||||
group: '{{ user }}'
|
||||
mode: 0600
|
||||
mode: '0600'
|
||||
when: ssh_keys|default(false)|bool
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
file:
|
||||
path: '/etc/sudoers.d/{{ user }}'
|
||||
state: touch
|
||||
mode: "0640" #-rw-r-----
|
||||
mode: '0640'
|
||||
when: 'sudogroup in user_groups'
|
||||
|
||||
- name: Setting user to nopasswd sudo access
|
||||
|
||||
Reference in New Issue
Block a user