From 6afdb77b666f062e41c5cbcb1790875daa309a9d Mon Sep 17 00:00:00 2001 From: Arthur BOUDREAULT <boudreaultarthur@ik.me> Date: Wed, 13 Oct 2021 12:09:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85fix:=20[601]=20Don't=20compare=20to=20?= =?UTF-8?q?literal=20True/False=20FIXED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0544997..47e368d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,11 +15,11 @@ url: "{{ ynh_install_script_url }}" dest: /tmp/install_yunohost.sh mode: 700 - when: ynh_file_install.stat.exists == False + when: not ynh_file_install.stat.exists - name: Launch Yunohost install script ansible.builtin.command: /tmp/install_yunohost.sh -a - when: ynh_file_install.stat.exists == False + when: not ynh_file_install.stat.exists - name: Launch Yunohost postinstall ansible.builtin.command: @@ -27,7 +27,7 @@ --domain "{{ ynh_main_domain }}" \ --password "{{ ynh_admin_password }}" \ {% if ynh_ignore_dyndns_server == True %} --ignore-dyndns {% endif %} - when: ynh_file_install.stat.exists == False + when: not ynh_file_install.stat.exists - name: Create extra domains ansible.builtin.include_tasks: domains.yml @@ -35,6 +35,7 @@ - name: Run first Yunohost diagnosis ansible.builtin.command: yunohost diagnosis run + when: not ynh_file_install.stat.exists - name: Install domain certificates ansible.builtin.command: yunohost domain cert-install -- GitLab