Skip to content

Commit e9591e2

Browse files
author
xbinois
committed
Idempotence
1 parent f11ec1b commit e9591e2

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

tasks/main.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,6 @@
1414
validate_certs: false
1515
when: not glpiinstalled.stat.exists or glpi_update
1616

17-
- name: Configure and install database in GLPI
18-
command:
19-
cmd: >
20-
php bin/console db:install -H {{ glpi_db_host }} -P {{ glpi_db_port }} -d {{ glpi_db_name }} -u {{ glpi_db_user }}
21-
-p {{ glpi_db_password }} -L {{ glpi_lang }} -q
22-
args:
23-
chdir: "{{ glpi_install_path }}/glpi/"
24-
when: not glpiinstalled.stat.exists
25-
26-
- name: Update database
27-
command:
28-
cmd: php bin/console db:update
29-
args:
30-
chdir: "{{ glpi_install_path }}/glpi/"
31-
when: glpi_update
32-
33-
- name: Check if config_db.php exists
34-
stat:
35-
path: "{{ glpi_install_path }}/glpi/config/config_db.php"
36-
register: glpiconfigdb
37-
38-
- name: Change config_db.php owner
39-
file:
40-
path: "{{ glpi_install_path }}/glpi/config/config_db.php"
41-
owner: "{{ glpi_web_owner }}"
42-
group: "{{ glpi_web_group }}"
43-
when: glpiconfigdb.stat.exists
44-
45-
- name: Delete /install directory
46-
file:
47-
path: "{{ glpi_install_path }}/glpi/install/"
48-
state: absent
49-
5017
- name: Download plugins
5118
get_url:
5219
url: "{{ item }}"

0 commit comments

Comments
 (0)