Archived
Update add_new_user.yaml
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- hosts: bonchvisors
|
||||
- hosts: bonchvisor04
|
||||
remote_user: cephadmin
|
||||
become: true
|
||||
become_user: root
|
||||
@@ -13,13 +13,17 @@
|
||||
|
||||
- name: password
|
||||
prompt: What is your password?
|
||||
private: yes
|
||||
encrypt: sha512_crypt
|
||||
confirm: no
|
||||
salt_size: 7
|
||||
|
||||
tasks:
|
||||
- name: Create madhead user
|
||||
- name: Create {{ username }} user
|
||||
user:
|
||||
name: madhead
|
||||
password: "{{ {{ password }} | password_hash('sha512') }}"
|
||||
name: {{ username }}
|
||||
password: "{{ password }}"
|
||||
shell: /bin/bash
|
||||
update_password: on_create
|
||||
register: madhead
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user