{"id":43814431,"url":"https://github.com/supertarto/ansible-glpi","last_synced_at":"2026-02-06T00:12:34.888Z","repository":{"id":194813254,"uuid":"224406450","full_name":"supertarto/ansible-glpi","owner":"supertarto","description":"Install and configure GLPI with Ansible","archived":false,"fork":false,"pushed_at":"2024-09-06T15:32:31.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-06T17:51:14.598Z","etag":null,"topics":["ansible","glpi","inventory","role"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supertarto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-27T10:36:59.000Z","updated_at":"2024-09-06T15:06:43.000Z","dependencies_parsed_at":"2024-09-05T16:57:20.909Z","dependency_job_id":null,"html_url":"https://github.com/supertarto/ansible-glpi","commit_stats":null,"previous_names":["supertarto/ansible-glpi"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/supertarto/ansible-glpi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supertarto%2Fansible-glpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supertarto%2Fansible-glpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supertarto%2Fansible-glpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supertarto%2Fansible-glpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supertarto","download_url":"https://codeload.github.com/supertarto/ansible-glpi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supertarto%2Fansible-glpi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","glpi","inventory","role"],"created_at":"2026-02-06T00:12:34.113Z","updated_at":"2026-02-06T00:12:34.879Z","avatar_url":"https://github.com/supertarto.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible GLPI\n[![CI](https://github.com/supertarto/ansible-glpi/actions/workflows/ci.yml/badge.svg)](https://github.com/supertarto/ansible-glpi/actions/workflows/ci.yml)\n\nAn Ansible Role to install and configure GLPI. You must have a Web Server, php and MariaDB on your server. This role is tested only with Apache.\n\n## Requirements\n\nThe prerequisites recommanded on the official GLPI docummentation are:\n\n* A web server (Apache, Nginx, IIS, etc.)\n* MariaDB \u003e= 10.2 or MySQL \u003e= 5.7\n* PHP 7.4 or higher\n* PHP extensions (mandatory):\n    * ctype\n    * curl\n    * gd (picture generation)\n    * iconv\n    * intl\n    * json\n    * mbstring\n    * mysqli\n    * session\n    * simplexml\n    * zlib\n* PHP extensions (optionnal)\n    * exif (security enhancement on images validation)\n    * imap (mail collector and users authentication)\n    * ldap (users authentication)\n    * openssl (encrypted communication)\n    * sodium (performances enhancement on sensitive data encryption/decryption)\n    * zip and bz2 (installation of zip and bz2 packages from marketplace)\n\nYou can use supertarto.apache, supertarto.mariadb and supertarto.php to install those beforehand with ansible\n\n## Tested plateform\n* Debian 11 (Bullseye)\n* Debian 12 (Bookworm)\n\n\n## Role variables\nThe GLPI version and the package name.\n```yml\nglpi_version: 10.0.16\nglpi_version_package: glpi-10.0.16.tgz\n```\nSet to \"true\" if you want to perform the final installation automatically. It configure the database for the first time. Else, you'll have to end it with your web browser. Don't use it when you update and your database is already configured. The task will crash, cause it's not meant for update.\n```yml\nglpi_auto_install: false\n```\nSet glpi_update to \"true\" if you want to force an reinstallation. The URL use the glpi_version an the package name.\n```yml\nglpi_update: false\nglpi_download_url: \"https://github.com/glpi-project/glpi/releases/download/{{ glpi_version }}/{{ glpi_version_package }}\"\n```\nGLPI web owner, group and installation path.\n```yml\nglpi_web_owner: \"www-data\"\nglpi_web_group: \"www-data\"\nglpi_install_path: /var/www\n```\n\nInformation about the GLPI database.\n```yml\nglpi_db_host: \"localhost\"\nglpi_db_port: \"3306\"\nglpi_db_name: \"glpi\"\nglpi_db_user: \"glpi\"\nglpi_db_password: \"changeit!\"\n```\n\n## Examples\n```yml\n- hosts: all\n  roles:\n    - role: supertarto.apache\n    - role: supertarto.mariadb\n    - role: supertarto.php\n    - role: supertarto.glpi\n  vars:\n    php_packages:\n      - php8.2\n      - php8.2-gd\n      - php8.2-mysql\n      - php8.2-curl\n      - php8.2-imap\n      - php8.2-json\n      - php8.2-ldap\n      - php8.2-mbstring\n      - php8.2-xml\n      - php8.2-cli\n      - php8.2-xmlrpc\n      - php8.2-intl\n      - php-apcu\n      - php-cas\n      - php8.2-zip\n      - php8.2-bz2\n    glpi_db_host: \"localhost\"\n    glpi_db_port: \"3306\"\n    glpi_db_name: \"glpi\"\n    glpi_db_user: \"glpi\"\n    glpi_db_password: \"changeit!\"\n    apache_create_vhosts: true\n    apache_vhosts_filename: \"glpi.conf\"\n    apache_vhost_config:\n      - listen_ip: \"*\"\n        listen_port: 80\n        server_name: host1\n        documentroot: \"/var/www/glpi/public\"\n        serveradmin: admin@localhost\n        custom_param: |\n          ErrorLog ${APACHE_LOG_DIR}/error.log\n          CustomLog ${APACHE_LOG_DIR}/access.log combined\n          LogLevel warn\n        directory:\n          - path: \"/var/www/glpi\"\n            config: |\n              AllowOverride All\n              Order deny,allow\n              allow from all\n\n    mariadb_use_dump_script: false\n    mariadb_databases:\n      - name: \"{{ glpi_db_name }}\"\n\n    mariadb_users:\n      - name: \"{{ glpi_db_user }}\"\n        host: \"{{ glpi_db_host }}\"\n        password: \"{{ glpi_db_password }}\"\n        priv: \"{{ glpi_db_name }}.*:SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES\"\n```\n## Installation\n```\nansible-galaxy role install supertarto.glpi\n```\n## License\nGPL V3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupertarto%2Fansible-glpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupertarto%2Fansible-glpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupertarto%2Fansible-glpi/lists"}