Skip to content

Commit

Permalink
Automatic Update DB
Browse files Browse the repository at this point in the history
  • Loading branch information
supertarto committed Sep 6, 2024
1 parent 60f27b0 commit e72518e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,21 @@
src: "{{ glpi_install_path }}/glpi-bck/config/"
dest: "{{ glpi_install_path }}/glpi/config"

- name: Automatic update
command: "php bin/console db:update --no-telemetry"
args:
chdir: "{{ glpi_install_path }}/glpi"
notify:
- Remove install.php
- Add htaccess

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
when: ( not glpiinstalled.stat.exists ) and glpi_auto_install
notify:
- Remove install.php
- Add htaccess
Expand Down

0 comments on commit e72518e

Please sign in to comment.