-
Notifications
You must be signed in to change notification settings - Fork 0
/
laravel_app.yml
50 lines (50 loc) · 1.48 KB
/
laravel_app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- hosts: happyfuntime
pre_tasks:
- yum:
pkg: "git"
state: "present"
become: yes
- name: "enable legacy cert support, because nodejs package is current broken"
command: "update-crypto-policies --set LEGACY"
become: yes
post_tasks:
- name: "Create a /var/www/html/shared/storage and set it to 777"
file:
path: "/var/www/html/shared/storage"
state: directory
owner: "{{ deploy_user }}"
group: "{{ deploy_user }}"
mode: "0777"
become: yes
- name: "configure SElinux so that nginx can write to /var/www/html/<release>/storage"
sefcontext:
target: "/var/www/html/shared/storage/(/.*)?"
setype: "httpd_sys_rw_content_t"
state: "present"
become: yes
- name: "configure SElinux so that nginx can write to /var/www/html/<release>/storage"
sefcontext:
target: "/var/www/html/releases/[^/]*/storage/(/.*)?"
setype: "httpd_sys_rw_content_t"
state: "present"
become: yes
- name: copy in laravel env file
template:
src: "env.j2"
dest: "/var/www/html/shared/.env"
owner: "{{ deploy_user }}"
group: "{{ deploy_user }}"
mode: "0644"
roles:
- user_management
# - geerlingguy.apache
- geerlingguy.repo-remi
# - geerlingguy.ruby
# - sectigo
- geerlingguy.certbot
- geerlingguy.nginx
- webapp
- geerlingguy.php
- geerlingguy.nodejs
- geerlingguy.redis