fix: removed password from vars file, which changes on access
This commit is contained in:
@@ -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,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 +0,0 @@
|
|||||||
plain_pass: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigitsi,punctuation length=15') }}"
|
|
||||||
Reference in New Issue
Block a user