Add initial user creation playbook
This commit is contained in:
parent
dedefb1c1d
commit
dbf7572814
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
name: Load variables
|
||||||
|
tasks:
|
||||||
|
- name: Load user variables
|
||||||
|
include_vars:
|
||||||
|
file: users.yml
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
name: Prompt for variables
|
||||||
|
vars_prompt:
|
||||||
|
- name: "generate_keys"
|
||||||
|
prompt: "Generate SSH keypair for new users?"
|
||||||
|
default: yes
|
||||||
|
when: generate_keys is not defined
|
||||||
|
|
||||||
|
- name: "enable_sudo_password"
|
||||||
|
prompt: "Require user password when running sudo commands?"
|
||||||
|
default: yes
|
||||||
|
when: enable_sudo_password is not defined
|
||||||
|
|
||||||
|
- name: "disable_gnome_user_list"
|
||||||
|
prompt: "Disable the GNOME user list?"
|
||||||
|
default: yes
|
||||||
|
when: disable_gnome_user_list is not defined
|
Reference in New Issue
Block a user