whitespaces
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing

This commit is contained in:
Jérémy Lecour 2019-06-27 16:16:19 +02:00 committed by Jérémy Lecour
parent c147a4674d
commit b773e17560
5 changed files with 59 additions and 52 deletions

View file

@ -21,19 +21,19 @@
name: '{{ item }}'
state: present
with_items:
- libapache2-mod-security2
- modsecurity-crs
- apg
- libapache2-mod-security2
- modsecurity-crs
- apg
- name: Additional modules are enabled
apache2_module:
name: '{{ item }}'
state: present
with_items:
- ssl
- include
- negotiation
- alias
- ssl
- include
- negotiation
- alias
- name: Copy Apache settings for modules
copy:
@ -58,6 +58,5 @@
register: command_result
changed_when: "'Enabling' in command_result.stderr"
with_items:
- evolinux-evasive
- evolinux-modsec
- evolinux-evasive
- evolinux-modsec

View file

@ -6,23 +6,23 @@
changed_when: "'changed' in command_result.stdout"
failed_when: False
with_items:
- /
- /etc
- /usr
- /usr/bin
- /var
- /var/log
- /home
- /bin
- /sbin
- /lib
- /usr/lib
- /usr/include
- /usr/bin
- /usr/sbin
- /usr/share
- /usr/share/doc
- /etc/default
- /
- /etc
- /usr
- /usr/bin
- /var
- /var/log
- /home
- /bin
- /sbin
- /lib
- /usr/lib
- /usr/include
- /usr/bin
- /usr/sbin
- /usr/share
- /usr/share/doc
- /etc/default
- name: Set 750 permission on some folders (/var/log/apt, /var/log/munin, ...)
shell: "test -d {{ item }} && chmod --verbose 750 {{ item }}"
@ -30,15 +30,15 @@
changed_when: "'changed' in command_result.stdout"
failed_when: False
with_items:
- /var/log/apt
- /var/lib/dpkg
- /var/log/munin
- /var/backups
- /etc/init.d
- /etc/apache2
- /etc/network
- /etc/phpmyadmin
- /var/log/installer
- /var/log/apt
- /var/lib/dpkg
- /var/log/munin
- /var/backups
- /etc/init.d
- /etc/apache2
- /etc/network
- /etc/phpmyadmin
- /var/log/installer
- name: Change group to www-data for /etc/phpmyadmin/
file:
@ -51,11 +51,11 @@
changed_when: "'changed' in command_result.stdout"
failed_when: False
with_items:
- /bin/ping
- /bin/ping6
- /usr/bin/fping
- /usr/bin/fping6
- /usr/bin/mtr
- /bin/ping
- /bin/ping6
- /usr/bin/fping
- /usr/bin/fping6
- /usr/bin/mtr
- name: Set 640 permission on some files (/var/log/evolix.log, ...)
shell: "test -f {{ item }} && chmod --verbose 640 {{ item }}"
@ -63,6 +63,5 @@
changed_when: "'changed' in command_result.stdout"
failed_when: False
with_items:
- /var/log/evolix.log
- /etc/warnquota.conf
- /var/log/evolix.log
- /etc/warnquota.conf

View file

@ -65,7 +65,7 @@
- include: apache.yml
- include: phpmyadmin.yml
# - include: phpmyadmin.yml
- include: awstats.yml

View file

@ -5,8 +5,8 @@
name: '{{ item }}'
state: present
with_items:
- phpmyadmin
- apg
- phpmyadmin
- apg
- name: Check if phpmyadmin default configuration is present
stat:

View file

@ -4,19 +4,28 @@
name: apt
tasks_from: evolix_public.yml
- name: Install PHP packages
- name: Install PHP packages (Debian 10 and later)
apt:
name: '{{ item }}'
state: present
with_items:
- php-pear
- php-log
- php-pear
when: ansible_distribution_major_version | version_compare('10', '>=')
- name: Install PHP5 packages
- name: Install PHP packages (stretch)
apt:
name: '{{ item }}'
state: present
with_items:
- php-pear
- php-log
when: ansible_lsb.codename == "stretch"
- name: Install PHP5 packages (jessie)
apt:
name: '{{ item }}'
state: present
allow_unauthenticated: yes
with_items:
- php5-pam
- php5-pam
when: ansible_lsb.codename == "jessie"