Mercurial > hg > Members > anatofuz > wordpress_ansible
annotate roles/install-php/tasks/main.yml @ 28:94d62666b307 default tip
...
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 03 Sep 2020 13:46:18 +0900 |
parents | 1f1ecee8072b |
children |
rev | line source |
---|---|
22 | 1 --- |
2 | |
8 | 3 - name: install php packages |
4 become: yes | |
5 dnf: | |
24
f987206d7e7a
remove packages loop
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
22
diff
changeset
|
6 name: |
22 | 7 - php |
8 - php-mysqlnd | |
9 - php-mbstring | |
10 - php-fpm | |
27
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
11 - php-cli |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
12 - php-json |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
13 - php-opcache |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
14 - php-xml |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
15 - php-gd |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
16 - php-curl |
24
f987206d7e7a
remove packages loop
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
22
diff
changeset
|
17 state: latest |
27
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
18 |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
19 - name: replace /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
20 become: yes |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
21 replace: |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
22 path: /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
23 regexp: 'apache' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
24 replace: 'nginx' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
25 notify: restart_php_fpm |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
26 |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
27 - name: replace /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
28 become: yes |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
29 replace: |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
30 path: /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
31 regexp: '(listen.acl_users)' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
32 replace: ';\1' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
33 notify: restart_php_fpm |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
34 |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
35 |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
36 - name: replace /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
37 become: yes |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
38 replace: |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
39 path: /etc/php-fpm.d/www.conf |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
40 regexp: ';(listen\.)(owner|group) = nobody' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
41 replace: '\1\2 = nginx' |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
42 notify: restart_php_fpm |
1f1ecee8072b
fix restart php-fpm
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
24
diff
changeset
|
43 |