1
0
Fork 0

Merge branch '96-fix-ynh_setup-change-user-first-name-last-name-to-full-name' into 'main'

Resolve "fix(ynh_setup): change user first name / last name to full name"

Closes #96

See merge request lydra/yunohost/ansible-yunohost!63
This commit is contained in:
Christophe Chaudier 2023-03-02 15:45:32 +00:00
commit 3870ad60ba
4 changed files with 4 additions and 8 deletions

View file

@ -65,8 +65,7 @@ ynh_ignore_dyndns_server: False
ynh_users: ynh_users:
- name: user1 - name: user1
pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS
firstname: Jane fullname: Jane DOE
lastname: Doe
mail_domain: domain.tld mail_domain: domain.tld
``` ```

View file

@ -65,8 +65,7 @@ ynh_ignore_dyndns_server: False
ynh_users: ynh_users:
- name: user1 - name: user1
pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS
firstname: Jane fullname: Jane DOE
lastname: Doe
mail_domain: domain.tld mail_domain: domain.tld
``` ```

View file

@ -47,6 +47,5 @@ ynh_ignore_dyndns_server: False
ynh_users: null ynh_users: null
# - name: user1 # - name: user1
# pass: p@ssw0rd # pass: p@ssw0rd
# firstname: Jane # fullname: Jane DOE
# lastname: Doe
# mail_domain: domain.tld # mail_domain: domain.tld

View file

@ -35,8 +35,7 @@
- name: Create missing Yunohost users - name: Create missing Yunohost users
ansible.builtin.command: ansible.builtin.command:
yunohost user create "{{ item.name }}" \ yunohost user create "{{ item.name }}" \
-f "{{ item.firstname }}" \ -F "{{ item.fullname }}" \
-l "{{ item.lastname }}" \
-d "{{ item.mail_domain }}" \ -d "{{ item.mail_domain }}" \
-p "{{ item.pass }}" -p "{{ item.pass }}"
loop: "{{ ynh_users }}" loop: "{{ ynh_users }}"