1
0
Fork 0
ynh-lydra-ansible-yunohost/tasks/main.yml

44 lines
1 KiB
YAML
Raw Normal View History

2017-08-23 12:58:21 +02:00
---
- name: Install requirements
apt:
name:
- git
- dialog
state: present
- name: Test if Yunohost is already installed
stat: path=/etc/yunohost/installed
register: yunohost_file_install
- name: Download install script
get_url:
url: "{{ yunohost.install_script_url }}"
dest: /tmp/install_yunohost.sh
mode: 700
when: yunohost_file_install.stat.exists == False
- name: Launch script
command: /tmp/install_yunohost.sh -a
when: yunohost_file_install.stat.exists == False
- name: Launch postinsstall
shell: "
yunohost tools postinstall \
--domain {{ yunohost.domain }} \
--password {{ yunohost.password }} \
{% if yunohost.ignore_dyndns == True %} --ignore-dyndns {% endif %}
"
when: yunohost_file_install.stat.exists == False
2017-08-24 22:39:58 +02:00
- name: Create domains
include: domains.yml
when: yunohost.extra_domains
2017-08-23 12:58:21 +02:00
- name: Install certificates
2017-08-24 22:39:58 +02:00
shell: yunohost domain cert-install
changed_when: False
2017-08-23 15:23:31 +02:00
- name: Install apps
2017-08-24 22:39:58 +02:00
include: apps.yml
2017-08-23 15:23:31 +02:00
when: yunohost.apps