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 710c4840 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

:recycle: refactor: changed vars to match new variable names

parent 669d3ebb
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
......@@ -7,7 +7,7 @@
- name: Format json of apps
ansible.builtin.set_fact: yunohost_installed_apps="{{ yunohost_installed_apps_raw.stdout | from_json }}"
- name: Install apps
- name: Install yunohost apps
ansible.builtin.shell: yunohost app install {{ item.link }} --label "{{ item.label }}" --args "{% for key, value in item.args.items() %}{{key}}={{value}}{% if not loop.last %}&{% endif %}{% endfor %}"
with_items: "{{ yunohost.apps }}"
with_items: "{{ ynh_apps }}"
when: item.label not in yunohost_installed_apps.values()
......@@ -9,5 +9,5 @@
- name: Create domains
ansible.builtin.shell: yunohost domain add {{ item }}
with_items: "{{ yunohost.extra_domains }}"
with_items: "{{ ynh_extra_domains }}"
when: item not in yunohost_installed_domains.domains
......@@ -7,12 +7,12 @@
- name: Format json of users
ansible.builtin.set_fact: yunohost_registered_users="{{ yunohost_registered_users_raw.stdout | from_json }}"
- name: Create missing users
- name: Create missing Yunohost users
ansible.builtin.shell: |
yunohost user create {{ item.name }} \
-f {{ item.firstname }} \
-l {{ item.lastname }} \
-d {{ item.mail_domain }} \
-p {{ item.pass }}
loop: "{{ yunohost.users }}"
loop: "{{ ynh_users }}"
when: item.name not in yunohost_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