--- ########################################################### # # This is the top level playbook for the 'create_user' role. This playbook will # prompt the user for a username and password for a new user, and will create # a new user account with that name and password set. # ########################################################### # # This playbook can be run using the following command line; # # ansible-playbook -i create_user.yml # # ie, # ansible-playbook -i 192.168.1.123, create_user.yml # ########################################################### - hosts: all gather_facts: true user: root vars_prompt: - name: username prompt: "Please enter the name for the new user" private: false - name: userpw prompt: "Please enter the password for the new user" private: true roles: - role: create_user # EOF