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

:recycle:refactor: changed vars to reflect new variable names + removed git...

:recycle:refactor: changed vars to reflect new variable names + removed git requirement (already installed with git role)
parent 710c4840
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.
......@@ -2,49 +2,48 @@
- name: Install requirements
ansible.builtin.apt:
name:
- git
- dialog
state: present
- name: Test if Yunohost is already installed
ansible.builtin.stat: path=/etc/yunohost/installed
register: yunohost_file_install
register: ynh_file_install
- name: Download install script
- name: Download Yunohost install script
ansible.builtin.get_url:
url: "{{ yunohost.install_script_url }}"
url: "{{ ynh_install_script_url }}"
dest: /tmp/install_yunohost.sh
mode: 700
when: yunohost_file_install.stat.exists == False
when: ynh_file_install.stat.exists == False
- name: Launch script
- name: Launch Yunohost install script
ansible.builtin.command: /tmp/install_yunohost.sh -a
when: yunohost_file_install.stat.exists == False
when: ynh_file_install.stat.exists == False
- name: Launch postinsstall
- name: Launch Yunohost postinstall
ansible.builtin.shell: "
yunohost tools postinstall \
--domain {{ yunohost.domain }} \
--password {{ yunohost.password }} \
{% if yunohost.ignore_dyndns == True %} --ignore-dyndns {% endif %}
--domain {{ ynh_main_domain }} \
--password {{ ynh_admin_password }} \
{% if ynh_ignore_dyndns_server == True %} --ignore-dyndns {% endif %}
"
when: yunohost_file_install.stat.exists == False
when: ynh_file_install.stat.exists == False
- name: Create domains
- name: Create extra domains
ansible.builtin.include: domains.yml
when: yunohost.extra_domains
when: ynh_extra_domains
- name: Run diagnosis # Required to install certificates
- name: Run first Yunohost diagnosis # Required to install certificates
ansible.builtin.shell: yunohost diagnosis run
- name: Install certificates
- name: Install domain certificates
ansible.builtin.shell: yunohost domain cert-install
changed_when: False
- name: Add users
- name: Add Yunohost users
ansible.builtin.include: users.yml
when: yunohost.users
when: ynh_users
- name: Install apps
- name: Install Yunohost apps
ansible.builtin.include: apps.yml
when: yunohost.apps
when: ynh_apps
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