changeset 5:774156afc195

update wordpress and add httpd restart
author k178572
date Sat, 21 Oct 2017 20:18:33 +0900
parents cc65e5e31907
children c661af479682
files hosts main.yml tasks/setting-wordpress.yml
diffstat 3 files changed, 15 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/hosts	Tue Oct 17 13:37:38 2017 +0900
+++ b/hosts	Sat Oct 21 20:18:33 2017 +0900
@@ -1,1 +1,1 @@
-test-fedora
+test-fedora4
--- a/main.yml	Tue Oct 17 13:37:38 2017 +0900
+++ b/main.yml	Sat Oct 21 20:18:33 2017 +0900
@@ -1,11 +1,11 @@
 - hosts: all
   user: mitsuki
   tasks:
-    - include: tasks/install-firewalld.yml
-    - include: tasks/setting-firewalld.yml
-    - include: tasks/install-httpd.yml
-    - include: tasks/install-php.yml
-    - include: tasks/install-mariadb.yml
-    - include: tasks/install-php-mbstring.yml
-    - include: tasks/setting-mariadb.yml
-    - include: tasks/setting-wordpress.yml
+    - import_tasks: tasks/install-firewalld.yml
+    - import_tasks: tasks/setting-firewalld.yml
+    - import_tasks: tasks/install-httpd.yml
+    - import_tasks: tasks/install-php.yml
+    - import_tasks: tasks/install-mariadb.yml
+    - import_tasks: tasks/install-php-mbstring.yml
+    - import_tasks: tasks/setting-mariadb.yml
+    - import_tasks: tasks/setting-wordpress.yml
--- a/tasks/setting-wordpress.yml	Tue Oct 17 13:37:38 2017 +0900
+++ b/tasks/setting-wordpress.yml	Sat Oct 21 20:18:33 2017 +0900
@@ -1,9 +1,9 @@
     - name: WordPress Download
-      get_url: url="https://ja.wordpress.org/wordpress-4.3.1-ja.tar.gz" dest=/tmp
+      get_url: url="https://ja.wordpress.org/wordpress-4.8.2-ja.tar.gz" dest=/tmp
 
     - name: unarchive source
       become: yes
-      command: tar zxvf /tmp/wordpress-4.3.1-ja.tar.gz chdir=/var/www/html
+      command: tar zxvf /tmp/wordpress-4.8.2-ja.tar.gz chdir=/var/www/html
 
     - name: change dir / files permission
       become: yes
@@ -36,3 +36,7 @@
     - name: replace /var/www/html/wordpress/wp-config.php
       become: yes
       replace: dest=/var/www/html/wordpress/wp-config.php regexp='password_here' replace='hZzTwWuTeN'
+
+    - name: httpd restart
+      service: name=httpd state=restarted
+      become: yes