Newer
Older
name:
- git
- dialog
state: present
- name: Test if Yunohost is already installed
ansible.builtin.stat: path=/etc/yunohost/installed
register: yunohost_file_install
- name: Download install script
url: "{{ yunohost.install_script_url }}"
dest: /tmp/install_yunohost.sh
mode: 700
when: yunohost_file_install.stat.exists == False
- name: Launch script
ansible.builtin.command: /tmp/install_yunohost.sh -a
when: yunohost_file_install.stat.exists == False
- name: Launch postinsstall
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: Run diagnosis # Required to install certificates
ansible.builtin.shell: yunohost diagnosis run
ansible.builtin.shell: yunohost domain cert-install
- name: Add ssh for admin user
ansible.builtin.include: admin_users.yml
when: yunohost.admin_users is defined