Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit fec7f0a3 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

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

parent 30822d20
No related branches found
No related tags found
1 merge request!63Resolve "fix(ynh_setup): change user first name / last name to full name"
Pipeline #12146 passed with warnings
This commit is part of merge request !63. Comments created here will be created in the context of that merge request.
...@@ -65,8 +65,7 @@ ynh_ignore_dyndns_server: False ...@@ -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
``` ```
......
...@@ -65,8 +65,7 @@ ynh_ignore_dyndns_server: False ...@@ -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
``` ```
......
...@@ -47,6 +47,5 @@ ynh_ignore_dyndns_server: False ...@@ -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
...@@ -35,8 +35,7 @@ ...@@ -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 }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment