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: | ignore: |
.github/stale.yml .github/stale.yml
.travis.yml

View File

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

View File

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

View File

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