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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
1 ---
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
2
8
4545b6456623 s/with_items/loop/
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
3 - name: install php packages
4545b6456623 s/with_items/loop/
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
4 become: yes
4545b6456623 s/with_items/loop/
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
5 dnf:
24
f987206d7e7a remove packages loop
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 22
diff changeset
6 name:
22
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
7 - php
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
8 - php-mysqlnd
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
9 - php-mbstring
090c14a0be80 loop to vars
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 17
diff changeset
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