Skip to content

Commit 30dadee

Browse files
committed
Add better update
1 parent c5b79c8 commit 30dadee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tasks/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@
4040
validate_certs: false
4141
when: not glpiinstalled.stat.exists or glpi_update
4242

43-
- name: Automatic installation
44-
command: "php bin/console -n db:install -H {{ glpi_db_host }} -P {{ glpi_db_port }} -d {{ glpi_db_name }} -u {{ glpi_db_user }} -p {{ glpi_db_password }}"
45-
args:
46-
chdir: "{{ glpi_install_path }}/glpi"
47-
when: ( not glpiinstalled.stat.exists or glpi_update ) and glpi_auto_install
48-
notify:
49-
- Remove install.php
50-
- Add htaccess
51-
5243
- block:
5344

5445
- name: Copy files directory from backup to new version
@@ -65,6 +56,15 @@
6556

6657
when: glpi_update and glpiinstalled
6758

59+
- name: Automatic installation
60+
command: "php bin/console -n db:install -H {{ glpi_db_host }} -P {{ glpi_db_port }} -d {{ glpi_db_name }} -u {{ glpi_db_user }} -p {{ glpi_db_password }}"
61+
args:
62+
chdir: "{{ glpi_install_path }}/glpi"
63+
when: ( not glpiinstalled.stat.exists or glpi_update ) and glpi_auto_install
64+
notify:
65+
- Remove install.php
66+
- Add htaccess
67+
6868
- name: Set permisions to files directory
6969
file:
7070
path: "{{ glpi_install_path }}/glpi/files"

0 commit comments

Comments
 (0)