fc692cf65b
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Use “when: not ansible_check_mode” or “when <file>.stat.exists or not
ansible_check_mode” in order to provide a meaningful diff if possible.
This is an improvement from the previously reverted commit
1728eaee68
.
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
---
|
|
|
|
- name: Symlink Evolix CLI config files from 7.4 to 7.0
|
|
file:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
force: yes
|
|
state: link
|
|
loop:
|
|
- { src: "{{ php_cli_defaults_ini_file }}", dest: "/etc/php/7.4/cli/conf.d/z-evolinux-defaults.ini" }
|
|
- { src: "{{ php_cli_custom_ini_file }}", dest: "/etc/php/7.4/cli/conf.d/zzz-evolinux-custom.ini" }
|
|
|
|
- name: Enforce permissions on PHP 7.4/cli directory
|
|
file:
|
|
dest: /etc/php/7.4/cli
|
|
mode: "0755"
|
|
when: not ansible_check_mode
|
|
|
|
- name: Symlink Evolix Apache config files from 7.4 to 7.0
|
|
file:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
force: yes
|
|
state: link
|
|
loop:
|
|
- { src: "{{ php_apache_defaults_ini_file }}", dest: "/etc/php/7.4/apache2/conf.d/z-evolinux-defaults.ini" }
|
|
- { src: "{{ php_apache_custom_ini_file }}", dest: "/etc/php/7.4/apache2/conf.d/zzz-evolinux-custom.ini" }
|
|
when: php_apache_enable | bool
|
|
|
|
- name: Enforce permissions on PHP 7.4/cli directory
|
|
file:
|
|
dest: /etc/php/7.4/apache2
|
|
mode: "0755"
|
|
when:
|
|
- php_apache_enable | bool
|
|
- not ansible_check_mode
|
|
|
|
- name: Symlink Evolix FPM config files from 7.4 to 7.0
|
|
file:
|
|
src: "{{ item.src }}"
|
|
dest: "{{ item.dest }}"
|
|
force: yes
|
|
state: link
|
|
loop:
|
|
- { src: "{{ php_fpm_defaults_ini_file }}", dest: "/etc/php/7.4/fpm/conf.d/z-evolinux-defaults.ini" }
|
|
- { src: "{{ php_fpm_custom_ini_file }}", dest: "/etc/php/7.4/fpm/conf.d/zzz-evolinux-custom.ini" }
|
|
- { src: "{{ php_fpm_defaults_conf_file }}", dest: "/etc/php/7.4/fpm/pool.d/z-evolinux-defaults.conf" }
|
|
- { src: "{{ php_fpm_custom_conf_file }}", dest: "/etc/php/7.4/fpm/pool.d/zzz-evolinux-custom.conf" }
|
|
when: php_fpm_enable | bool
|
|
|
|
- name: Enforce permissions on PHP 7.4/cli directory
|
|
file:
|
|
dest: /etc/php/7.4/fpm
|
|
mode: "0755"
|
|
when:
|
|
- php_fpm_enable | bool
|
|
- not ansible_check_mode
|