mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-19 17:01:38 +02:00
don't lock out by default
This commit is contained in:
parent
472c8ee38f
commit
5981af269c
@ -84,6 +84,7 @@
|
|||||||
groups="{{ item.groups }}"
|
groups="{{ item.groups }}"
|
||||||
uid="{{ item.uid }}"
|
uid="{{ item.uid }}"
|
||||||
state=present
|
state=present
|
||||||
|
shell=/bin/bash
|
||||||
with_items: "{{ create_users }}"
|
with_items: "{{ create_users }}"
|
||||||
tags: [ 'users' ]
|
tags: [ 'users' ]
|
||||||
|
|
||||||
@ -95,8 +96,11 @@
|
|||||||
tags: [ 'users' ]
|
tags: [ 'users' ]
|
||||||
|
|
||||||
### disable the 'pi' user's ability to login in with password
|
### disable the 'pi' user's ability to login in with password
|
||||||
- name: disable 'pi' user
|
### if you enable this, you may lock yourself out--you must make sure another
|
||||||
user: name="pi"
|
### user has been added with both sudo privileges and a password by which
|
||||||
password="*"
|
### sudo can be authenticated
|
||||||
state=present
|
#- name: disable 'pi' user
|
||||||
tags: [ 'users' ]
|
# user: name="pi"
|
||||||
|
# password="*"
|
||||||
|
# state=present
|
||||||
|
# tags: [ 'users' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user