glpi-debian/roles/glpi/tasks/main.yml

34 lines
701 B
YAML
Raw Permalink Normal View History

2025-08-21 15:31:19 +02:00
---
- name: Download GLPI archive
ansible.builtin.get_url:
url: "{{ glpi_archive_url }}"
dest: '/var/www'
owner: root
group: nogroup
mode: '0600'
register: glpi_archive
- name: Extract the archive
ansible.builtin.unarchive:
remote_src: true
src: "{{ glpi_archive.dest }}"
dest: '/var/www'
owner: www-data
group: nogroup
mode: '0700'
- name: Rename the folder
ansible.builtin.command:
argv:
- '/usr/bin/mv'
- '/var/www/glpi'
- "{{ glpi_folderpath }}"
changed_when: true
- name: Link the glpi folder with version to glpi
ansible.builtin.file:
src: "{{ glpi_folderpath }}"
path: '/var/www/glpi'
state: link
...