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 1fa4f458 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket: Committed by Arthur BOUDREAULT
Browse files

Apply 3 suggestion(s) to 2 file(s)

parent 67fd258e
No related branches found
No related tags found
1 merge request!6✅Resolve "Use command module"
Pipeline #2811 failed
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -22,11 +22,11 @@
when: ynh_file_install.stat.exists == False
- name: Launch Yunohost postinstall
ansible.builtin.command: "
ansible.builtin.command:
yunohost tools postinstall \
--domain {{ ynh_main_domain }} \
--password {{ ynh_admin_password }} \
{% if ynh_ignore_dyndns_server == True %} --ignore-dyndns {% endif %}"
--domain "{{ ynh_main_domain }}" \
--password "{{ ynh_admin_password }}" \
{% if ynh_ignore_dyndns_server == True %} --ignore-dyndns {% endif %}
when: ynh_file_install.stat.exists == False
- name: Create extra domains
......
......@@ -8,11 +8,11 @@
ansible.builtin.set_fact: ynh_registered_users="{{ ynh_registered_users_raw.stdout | from_json }}"
- name: Create missing Yunohost users
ansible.builtin.command: |
yunohost user create {{ item.name }} \
-f {{ item.firstname }} \
-l {{ item.lastname }} \
-d {{ item.mail_domain }} \
-p {{ item.pass }}
ansible.builtin.command:
yunohost user create "{{ item.name }}" \
-f "{{ item.firstname }}" \
-l "{{ item.lastname }}" \
-d "{{ item.mail_domain }}" \
-p "{{ item.pass }}"
loop: "{{ ynh_users }}"
when: item.name not in ynh_registered_users.users.keys()
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