|
|
@ -110,24 +110,6 @@ |
|
|
|
- set_fact: glpi_db_created={{ db_created }} |
|
|
|
- set_fact: glpi_db_created={{ db_created }} |
|
|
|
tags: glpi |
|
|
|
tags: glpi |
|
|
|
|
|
|
|
|
|
|
|
- name: Create a safer MySQL schema file |
|
|
|
|
|
|
|
shell: grep -v 'DROP TABLE' {{ glpi_root_dir }}/web/install/mysql/glpi-empty.sql > {{ glpi_root_dir }}/tmp/glpi.sql |
|
|
|
|
|
|
|
when: glpi_install_mode == 'install' |
|
|
|
|
|
|
|
tags: glpi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Inject MySQL schema |
|
|
|
|
|
|
|
mysql_db: |
|
|
|
|
|
|
|
name: "{{ glpi_mysql_db }}" |
|
|
|
|
|
|
|
state: import |
|
|
|
|
|
|
|
target: "{{ glpi_root_dir }}/tmp/glpi.sql" |
|
|
|
|
|
|
|
login_host: "{{ glpi_mysql_server }}" |
|
|
|
|
|
|
|
login_user: sqladmin |
|
|
|
|
|
|
|
login_password: "{{ mysql_admin_pass }}" |
|
|
|
|
|
|
|
when: |
|
|
|
|
|
|
|
- glpi_install_mode == 'install' |
|
|
|
|
|
|
|
- glpi_db_created.changed |
|
|
|
|
|
|
|
tags: glpi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Deploy cron task |
|
|
|
- name: Deploy cron task |
|
|
|
cron: |
|
|
|
cron: |
|
|
|
name: glpi_{{ glpi_id }} |
|
|
|
name: glpi_{{ glpi_id }} |
|
|
|