mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update admin-user.yml
This commit is contained in:
parent
11955df2b0
commit
6bc7ae2b77
1 changed files with 4 additions and 4 deletions
|
@ -3,18 +3,18 @@
|
|||
register: user_info
|
||||
failed_when: False # Hides red errors (stronger than 'ignore_errors: yes')
|
||||
|
||||
- name: Establish user {{ iiab_admin_user }} with shell /bin/bash, for login to IIAB's Admin Console (http://box.lan/admin) AND for IIAB support commands at the command-line (/usr/bin/iiab-* and /usr/sbin/iiab-*)
|
||||
- name: Establish user {{ iiab_admin_user }} with shell /bin/bash, for login to IIAB's Admin Console (http://box.lan/admin) AND for IIAB community support commands (/usr/bin/iiab-* and /usr/sbin/iiab-*) at the command-line
|
||||
user:
|
||||
name: "{{ iiab_admin_user }}"
|
||||
#group: "{{ iiab_admin_user }}" # Neither nec as 'USERGROUPS_ENAB yes'
|
||||
#groups: "{{ iiab_admin_user }}" # is set in any modern /etc/login.defs
|
||||
shell: /bin/bash
|
||||
#password: "{{ iiab_admin_pwd_hash }}"
|
||||
#update_password: on_create
|
||||
#password: "{{ iiab_admin_pwd_hash }}" # 2020-10-14: DEPRECATED in favor
|
||||
#update_password: on_create # of 'command: chpasswd' below. See: #2570
|
||||
|
||||
- name: If user didn't exist, set password to '{{ iiab_admin_published_pwd }}' # g0adm1n
|
||||
#shell: "echo {{ iiab_admin_user }}:{{ iiab_admin_published_pwd }} | chpasswd"
|
||||
command: chpasswd
|
||||
command: chpasswd # Equiv to line above, but safer
|
||||
args:
|
||||
stdin: "{{ iiab_admin_user | quote }}:{{ iiab_admin_published_pwd | quote }}"
|
||||
when: user_info.rc != 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue