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
main.yml 1.01 KiB
Newer Older
sylvainar's avatar
sylvainar committed
---
- 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

- name: Create domains
  include: domains.yml
  when: yunohost.extra_domains

sylvainar's avatar
sylvainar committed
- name: Install certificates
  shell: yunohost domain cert-install
  changed_when: False
sylvainar's avatar
sylvainar committed

- name: Install apps
  include: apps.yml
sylvainar's avatar
sylvainar committed
  when: yunohost.apps