Add info.php

This commit is contained in:
Gregory Colpart 2017-09-07 23:16:41 +02:00
parent 87ef758891
commit 9f01e1869d
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<?php
phpinfo();
?>

View file

@ -23,6 +23,18 @@
php_fpm_enable: True
when: packweb_apache_fpm
- name: install info.php
copy:
src: info.php
dest: /var/www/info.php
mode: "0644"
- name: enable info.php link in default site index
lineinfile:
dest: /var/www/index.html
line: ' <li><a href="/info.php">Infos PHP</a></li>'
regexp: "Infos PHP"
- name: Add elements to user account template
file:
path: "/etc/skel/{{ item.path }}"