Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
96 lines
2.4 KiB
YAML
96 lines
2.4 KiB
YAML
---
|
|
|
|
- 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: ' <li><a href="/info.php">Infos PHP</a></li>'
|
|
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: ' <li><a href="/opcache.php">Infos OpCache PHP</a></li>'
|
|
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
|
|
|