File diff ce24831d92f8 → 423f330ec482
roles/web_server/tasks/main.yml
Show inline comments
 
@@ -138,25 +138,27 @@
 

	
 
- name: Create directories for storing per-site socket files
 
  file:
 
    path: "{{ item }}"
 
    path: "/run/{{ item }}"
 
    state: directory
 
    owner: root
 
    group: www-data
 
    mode: 0750
 
  with_items:
 
    - "/run/wsgi/"
 
    - "/run/{{ php_fpm_service_name }}/"
 
    - wsgi
 
    - php
 

	
 
- name: Create directories for storing per-site socket files on boot
 
  copy:
 
    content: "d /run/{{ item }}/ 0750 root www-data - -"
 
    dest: "/etc/tmpfiles.d/{{ item }}.conf"
 
    content: "d /run/{{ item.socket_dir }}/ 0750 root www-data - -"
 
    dest: "/etc/tmpfiles.d/{{ item.tmpfiles_d }}"
 
    owner: root
 
    group: root
 
    mode: 0644
 
  with_items:
 
    - wsgi
 
    - "{{ php_fpm_service_name }}"
 
    - socket_dir: wsgi
 
      tmpfiles_d: "wsgi.conf"
 
    - socket_dir: php
 
      tmpfiles_d: "{{ php_fpm_service_name }}.conf"
 

	
 
- name: Install base packages for PHP web applications
 
  apt: