26 lines
646 B
YAML
26 lines
646 B
YAML
---
|
|
- 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
|