changeset 10:a2003ccc0166

php install as a role
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Sep 2020 13:33:55 +0900
parents f4c9cb3b14a3
children faa3afacbfd5
files roles/install-php/tasks/main.yml tasks/install-php-mbstring.yml tasks/install-php.yml
diffstat 3 files changed, 9 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/install-php/tasks/main.yml	Wed Sep 02 13:33:55 2020 +0900
@@ -0,0 +1,9 @@
+- name: install php packages
+  become: yes
+  dnf:
+    name: {{ item }}
+    state: latest
+  loop:
+    - php
+    - php-mysqlnd
+    - php-mbstring
--- a/tasks/install-php-mbstring.yml	Wed Sep 02 13:30:32 2020 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-- name: install dnf packages
-  become: yes
-  dnf:
-    name: 'php-mbstring'
-    state: latest
--- a/tasks/install-php.yml	Wed Sep 02 13:30:32 2020 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-- name: install php packages
-  become: yes
-  dnf:
-    name: {{ item }}
-    state: latest
-  loop:
-    - php
-    - php-mysqlnd