This repository has been archived on 2026-11-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openstack-deployment/ansible/playbooks/add_new_user.yaml
T
2021-02-11 17:00:39 +03:00

26 lines
473 B
YAML

---
- hosts: bonchvisors
remote_user: cephadmin
become: true
become_user: root
become_method: sudo
vars_prompt:
- name: username
prompt: What is your username?
private: no
- name: password
prompt: What is your password?
tasks:
- name: Create madhead user
user:
name: madhead
password: "{{ {{ password }} | password_hash('sha512') }}"
shell: /bin/bash
update_password: on_create
register: madhead