Ansible playbooks for managing a LAVA server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
534 B

- hosts: all
vars_prompt:
- name: username
prompt: "Username"
private: no
default: "root"
- name: email
prompt: "Email"
private: no
- name: password
prompt: "Password"
private: yes
tasks:
- name: Create user
shell: lava-server manage createsuperuser --username {{username}} --email {{email}} --noinput
- name: Set password
expect:
command: lava-server manage changepassword {{username}}
responses:
Password: "{{password}}"
Password (again): "{{password}}"