This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
omni-ansible/playbooks/update-users.yml
2018-11-27 21:51:33 -05:00

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