Fix rule 208 lint issues.

This commit is contained in:
Jeff Geerling 2020-08-20 22:34:18 -05:00
parent d8333268da
commit 3764e1662d
4 changed files with 7 additions and 3 deletions

View File

@ -8,3 +8,4 @@ rules:
ignore: |
.github/stale.yml
.travis.yml

View File

@ -49,6 +49,7 @@
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
mode: 0644
with_items:
- regexp: "^user.?=.+$"
line: "user = {{ php_fpm_pool_user }}"

View File

@ -4,6 +4,7 @@
path: "{{ item }}"
state: directory
follow: true
mode: 0755
with_flattened:
- "{{ php_conf_paths }}"
- "{{ php_extension_conf_paths }}"

View File

@ -71,7 +71,7 @@
register: gmp_file
- name: Ensure gmp.h is symlinked into a location accessible to gcc.
file:
file: # noqa 208
src: "{{ php_source_install_gmp_path }}"
dest: /usr/include/gmp.h
state: link
@ -121,14 +121,14 @@
when: php_installed.rc != 0
- name: Ensure php executable is symlinked into a standard path.
file:
file: # noqa 208
src: "{{ php_source_install_path }}/bin/php"
dest: /usr/bin/php
state: link
# PHP FPM configuration.
- name: Ensure php-fpm executable is symlinked into a standard path.
file:
file: # noqa 208
src: "{{ php_source_install_path }}/sbin/php-fpm"
dest: "/usr/sbin/{{ php_fpm_daemon }}"
state: link
@ -146,6 +146,7 @@
file:
path: "{{ php_fpm_conf_path }}"
state: directory
mode: 0755
when: "'--enable-fpm' in php_source_configure_command"
- name: Ensure php-fpm config file is installed.