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

bug: copy templates to server ok

parent b14b458d
No related branches found
No related tags found
1 merge request!16Resolve "feat: add app post_install"
Pipeline #2981 failed
......@@ -56,6 +56,3 @@ ynh_apps: null
# args:
# domain: domain.tld
# path: /ttrss
ynh_apps_postinstall: null
......@@ -20,20 +20,25 @@
# Installation part
- name: debug
debug:
msg: "Voici le résultat :{{ ynh_app }}"
tags: apps
- name: Install yunohost apps (you are inside app.yml)
ansible.builtin.command: yunohost app install {{ item.link }} \
--label "{{ item.label }}" \
--args "{% for key, value in item.args.items() %}{{ key }}={{ value }}{% if not loop.last %}&{% endif %}{% endfor %}"
when: item.label not in ynh_installed_apps.values()
ansible.builtin.command: yunohost app install {{ ynh_app.link }} \
--label "{{ ynh_app.label }}" \
--args "{% for key, value in ynh_app.args.items() %}{{ key }}={{ value }}{% if not loop.last %}&{% endif %}{% endfor %}"
changed_when: False
tags: apps
- name: Transfer template to node (can be a config file or a script)
- name: Transfer template to node (can be a config file or a script) #loop item.post-install
ansible.builtin.template:
src: "{{ item.post_install.src }}"
dest: "{{ item.post_install.dest }}"
type: "{{ item.post_install.type }}"
owner: "{{ item.post_install.owner }}"
group: "{{ item.post_install.group }}"
mode: "{{ item.post_install.mode }}"
when: item.post_install is defined
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ item.owner }}"
group: "{{ item.group }}"
mode: "{{ item.mode }}"
loop: "{{ ynh_app.post_install }}"
when: ynh_app.post_install is defined
tags: apps
......@@ -31,15 +31,17 @@
- name: Install yunohost apps and perform post-install (you are inside apps.yml)
ansible.builtin.include_tasks: app.yml
loop: "{{ ynh_apps }}"
when: item.label not in ynh_installed_apps.values()
loop_control:
loop_var: ynh_app
when: ynh_app.label not in ynh_installed_apps.values()
tags: apps
- name: debug (you are in apps.yml)
debug:
msg: "Voici le résultat :{{ item.post_install.0.src }}"
loop: "{{ ynh_apps.post_install.key }}"
when: ynh_apps.post_install is defined
tags: apps
# - name: debug (you are in apps.yml)
# debug:
# msg: "Voici le résultat :{{ item.post_install.0.src }}"
# loop: "{{ ynh_apps.post_install.key }}"
# when: ynh_apps.post_install is defined
# tags: apps
## post-install:
# boucler sur les apps et inclure ce fichier de tasks
......
#!/bin/bash
touch toto_{{ ynh_main_domain }}.txt
---
title: {{ ynh_discourse_settings.title }}
site_description: {{ ynh_discourse_settings.site_description }}
contact_email: {{ ynh_discourse_settings.contact_email }}
invite_only: {{ ynh_discourse_settings.invite_only }}
backup_frequency: {{ ynh_discourse_settings.backup_frequency }}
maximum_backups: {{ ynh_discourse_settings.maximum_backups }}
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