Skip to content

Commit

Permalink
Add better update
Browse files Browse the repository at this point in the history
  • Loading branch information
supertarto committed Sep 6, 2024
1 parent c5b79c8 commit 30dadee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@
validate_certs: false
when: not glpiinstalled.stat.exists or glpi_update

- name: Automatic installation
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 }}"
args:
chdir: "{{ glpi_install_path }}/glpi"
when: ( not glpiinstalled.stat.exists or glpi_update ) and glpi_auto_install
notify:
- Remove install.php
- Add htaccess

- block:

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

when: glpi_update and glpiinstalled

- name: Automatic installation
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 }}"
args:
chdir: "{{ glpi_install_path }}/glpi"
when: ( not glpiinstalled.stat.exists or glpi_update ) and glpi_auto_install
notify:
- Remove install.php
- Add htaccess

- name: Set permisions to files directory
file:
path: "{{ glpi_install_path }}/glpi/files"
Expand Down

0 comments on commit 30dadee

Please sign in to comment.