]> freie-schul-it.de Git - fsit-smgt.git/blob - library/glpi.yml
weitere playbooks umbenannt
[fsit-smgt.git] / library / glpi.yml
1 ---
2 - name: install server specific packages
3 ansible.builtin.apt:
4 update_cache: yes
5 pkg:
6 - apache2
7 - php
8 - libapache2-mod-php
9 - mariadb-server
10 - php-mysqli
11 - php-mbstring
12 - php-curl
13 - php-gd
14 - php-simplexml
15 - php-intl
16 - php-ldap
17 - php-apcu
18 - php-xmlrpc
19 - php-cas
20 - php-zip
21 - php-bz2
22 - php-imap
23 - unzip
24 - name: create dirs for glpi
25 ansible.builtin.file:
26 path: /etc/glpi
27 state: directory
28 owner: www-data
29 - name: create dirs for glpi
30 ansible.builtin.file:
31 path: /var/lib/glpi
32 state: directory
33 owner: www-data
34 group: www-data
35 - name: create dirs for glpi
36 ansible.builtin.file:
37 path: /var/log/glpi
38 state: directory
39 owner: www-data
40 - name: create dirs for glpi
41 ansible.builtin.file:
42 path: /var/www/html/inc
43 state: directory
44 - name: write config to file
45 ansible.builtin.copy:
46 dest: /var/www/html/inc/downstream.php
47 content: |
48 <?php
49 define('GLPI_CONFIG_DIR', '/etc/glpi/');
50 if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {
51 require_once GLPI_CONFIG_DIR . '/local_define.php';
52 }
53 - name: write config to file
54 ansible.builtin.copy:
55 dest: /etc/glpi/local_define.php
56 content: |
57 <?php
58 define('GLPI_VAR_DIR', '/var/lib/glpi');
59 #php.ini
60
61 #-name: get glpi
62
63 ...
64
65