diff --git a/.yamllint b/.yamllint index 76a383c..f2033dd 100644 --- a/.yamllint +++ b/.yamllint @@ -8,3 +8,4 @@ rules: ignore: | .github/stale.yml + .travis.yml diff --git a/tasks/configure-fpm.yml b/tasks/configure-fpm.yml index fa0dbc4..dfebf0b 100644 --- a/tasks/configure-fpm.yml +++ b/tasks/configure-fpm.yml @@ -49,6 +49,7 @@ regexp: "{{ item.regexp }}" line: "{{ item.line }}" state: present + mode: 0644 with_items: - regexp: "^user.?=.+$" line: "user = {{ php_fpm_pool_user }}" diff --git a/tasks/configure.yml b/tasks/configure.yml index f4fa94c..e0e1434 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -4,6 +4,7 @@ path: "{{ item }}" state: directory follow: true + mode: 0755 with_flattened: - "{{ php_conf_paths }}" - "{{ php_extension_conf_paths }}" diff --git a/tasks/install-from-source.yml b/tasks/install-from-source.yml index 73a08c3..cd18daa 100644 --- a/tasks/install-from-source.yml +++ b/tasks/install-from-source.yml @@ -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.