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

Resolve "Create a collection"

Merged Arthur BOUDREAULT requested to merge 38-create-a-collection into main
Compare and Show latest version
6 files
+ 65
19
Compare changes
  • Side-by-side
  • Inline
Files
6
---
#-----------------------------------------------------------------------------#
# ansible-yunohost allows to deploy Yunohost using Ansible #
# Copyright 2021-2021 Lydra https://www.lydra.fr/ #
# Copyright 2021-present Lydra https://www.lydra.fr/ #
# #
# this program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
@@ -17,6 +17,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
#-----------------------------------------------------------------------------#
- name: Update all packages and index
ansible.builtin.apt:
upgrade: dist
update_cache: yes
tags:
- pkg
- linux
- name: Install requirements
ansible.builtin.apt:
@@ -24,10 +31,37 @@
- git
- dialog
state: present
tags:
- pkg
- linux
- name: Create data and config subdirs of Yunohost
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
mode: "0755"
with_items:
- "{{ ynh_data_dirs }}"
tags:
- linux
when: ynh_data_dirs_enabled
- name: Create symbolic links for Yunohost subdirs
ansible.builtin.file:
src: "{{ item.path }}"
dest: "{{ item.link }}"
state: link
with_items:
- "{{ ynh_data_dirs }}"
tags:
- linux
when: ynh_data_dirs_enabled
- name: Test if Yunohost is already installed
ansible.builtin.stat: path=/etc/yunohost/installed
register: ynh_file_install
tags:
- yunohost
- name: Download Yunohost install script
ansible.builtin.get_url:
@@ -35,10 +69,14 @@
dest: /tmp/install_yunohost.sh
mode: 700
when: not ynh_file_install.stat.exists
tags:
- yunohost
- name: Launch Yunohost install script
ansible.builtin.command: /tmp/install_yunohost.sh -a
when: not ynh_file_install.stat.exists
tags:
- yunohost
- name: Launch Yunohost postinstall
ansible.builtin.command:
@@ -47,32 +85,32 @@
--password "{{ ynh_admin_password }}" \
{% if ynh_ignore_dyndns_server %} --ignore-dyndns {% endif %}
when: not ynh_file_install.stat.exists
tags:
- yunohost
- domains
- name: Create extra domains
ansible.builtin.include_tasks: domains.yml
when: ynh_extra_domains
tags:
- yunohost
- domains
- name: Run first Yunohost diagnosis
ansible.builtin.command: yunohost diagnosis run
when: not ynh_file_install.stat.exists
tags:
- yunohost
- name: Install domain certificates
ansible.builtin.command: yunohost domain cert-install
changed_when: False
- name: Configure SMTP relay
ansible.builtin.include_tasks: smtp_relay.yml
loop: "{{ ynh_smtp_relay | dict2items }}"
when: item.value
tags:
- yunohost
- name: Add Yunohost users
ansible.builtin.include_tasks: users.yml
when: ynh_users
- name: Install Yunohost apps
ansible.builtin.include_tasks: apps.yml
when: ynh_apps
- name: Configures Yunohost autoupdate
ansible.builtin.include_tasks: autoupdate.yml
when: ynh_autoupdate.scheduled
tags:
- yunohost
- users
Loading