fix: removed password from vars file, which changes on access

This commit is contained in:
xpk
2019-03-29 15:35:23 +08:00
parent 9e848df553
commit f374207c92
3 changed files with 3 additions and 3 deletions
-2
View File
@@ -1,5 +1,3 @@
# This role is current unusable. On RHEL7.6, the password ansible sets is different from the genenated one.
# Ansible role for creating OS user # Ansible role for creating OS user
Create user and optionally put user into sudoers. By default, user is added to ssh_access group. Group will be created if not exist. Create user and optionally put user into sudoers. By default, user is added to ssh_access group. Group will be created if not exist.
+3
View File
@@ -3,6 +3,9 @@
name: ssh_access name: ssh_access
state: present state: present
- set_fact:
plain_pass: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigitsi length=15') }}"
- name: Create user {{ user.name }} - name: Create user {{ user.name }}
user: user:
name: "{{ user.name }}" name: "{{ user.name }}"
-1
View File
@@ -1 +0,0 @@
plain_pass: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigitsi,punctuation length=15') }}"