--- - name: Dependencies are satisfied ansible.builtin.include_tasks: dependencies.yml - ansible.builtin.fail: msg: only compatible with Debian >= 8 when: - ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<') - name: Additional packages are installed ansible.builtin.apt: name: - zip - unzip state: present - name: install info.php ansible.builtin.copy: src: info.php dest: /var/www/info.php mode: "0644" - name: enable info.php link in default site index ansible.builtin.lineinfile: dest: /var/www/index.html line: '
  • Infos PHP
  • ' regexp: "Infos PHP" - name: install opcache.php ansible.builtin.copy: src: opcache.php dest: /var/www/opcache.php mode: "0644" - name: enable opcache.php link in default site index ansible.builtin.lineinfile: dest: /var/www/index.html line: '
  • Infos OpCache PHP
  • ' regexp: "Infos OpCache PHP" - name: Add elements to user account template ansible.builtin.file: path: "/etc/skel/{{ item.path }}" state: "{{ item.state }}" mode: "{{ item.mode }}" loop: - { path: log, mode: "0750", state: directory } - { path: awstats, mode: "0750", state: directory } - { path: www, mode: "0750", state: directory } - name: Apache log file (templates) are present ansible.builtin.command: cmd: "touch /etc/skel/log/{{ item }}" args: creates: "/etc/skel/log/{{ item }}" loop: - access.log - error.log - name: Apache log file (templates) have the proper permissions ansible.builtin.file: dest: "/etc/skel/log/{{ item }}" mode: "0644" loop: - access.log - error.log - ansible.builtin.include_role: name: userlogrotate - name: Force DIR_MODE to 0750 in /etc/adduser.conf ansible.builtin.lineinfile: dest: /etc/adduser.conf regexp: '^DIR_MODE=' line: 'DIR_MODE=0750' - ansible.builtin.include: apache.yml - ansible.builtin.include: phpmyadmin.yml - ansible.builtin.include: awstats.yml - ansible.builtin.include: fhs_retrictions.yml when: packweb_fhs_retrictions | bool - name: Periodically cache ftp directory sizes for ftpadmin.sh ansible.builtin.cron: name: "ProFTPd directory size caching" special_time: daily job: "/usr/share/scripts/evoadmin/stats.sh" - ansible.builtin.include: multiphp.yml when: packweb_multiphp_versions | length > 0