--- - name: install server specific packages ansible.builtin.apt: update_cache: yes pkg: - apache2 - php - libapache2-mod-php - mariadb-server - php-mysqli - php-mbstring - php-curl - php-gd - php-simplexml - php-intl - php-ldap - php-apcu - php-xmlrpc - php-cas - php-zip - php-bz2 - php-imap - unzip - name: create dirs for glpi ansible.builtin.file: path: /etc/glpi state: directory owner: www-data - name: create dirs for glpi ansible.builtin.file: path: /var/lib/glpi state: directory owner: www-data group: www-data - name: create dirs for glpi ansible.builtin.file: path: /var/log/glpi state: directory owner: www-data - name: create dirs for glpi ansible.builtin.file: path: /var/www/html/inc state: directory - name: write config to file ansible.builtin.copy: dest: /var/www/html/inc/downstream.php content: |