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:05:21 +03:00

30 lines
519 B
YAML

---
- hosts: bonchvisor04
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?
private: yes
encrypt: sha512_crypt
confirm: no
salt_size: 7
tasks:
- name: Create {{ username }} user
user:
name: {{ username }}
password: "{{ password }}"
shell: /bin/bash
update_password: on_create