--- - name: Set default values in /etc/php5/apache2/conf.d/z-evolinux_defaults.ini ini_file: dest: /etc/php5/apache2/conf.d/z-evolinux_defaults.ini section: PHP option: "disable_functions" value: "shell-exec,system,passthru,putenv,popen" notify: reload apache - name: Install evoadmin VHost template: src: evoadmin.conf.j2 dest: /etc/apache2/sites-available/evoadmin.conf notify: reload apache2 - name: Enable evoadmin vhost command: "a2ensite evoadmin.conf" register: cmd_a2ensite changed_when: "'Enabling site' in cmd_a2ensite.stdout" notify: reload apache2 when: evoadmin_enable_vhost - name: Disable evoadmin vhost command: "a2dissite evoadmin.conf" register: cmd_a2dissite changed_when: "'Disabling site' in cmd_a2dissite.stdout" notify: reload apache2 when: not evoadmin_enable_vhost - name: Copy config file for evoadmin template: src: config.local.php.j2 dest: "{{ evoadmin_document_root}}/conf/config.local.php" mode: "0644" force: no - name: add www-evoadmin to shadow group user: name: www-evoadmin groups: shadow