# HG changeset patch # User k178572 # Date 1508584713 -32400 # Node ID 774156afc1953b2ef85dc162b0c0bbf9127c6e6b # Parent cc65e5e31907561da4130eca47f67a9a5ff89740 update wordpress and add httpd restart diff -r cc65e5e31907 -r 774156afc195 hosts --- 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 diff -r cc65e5e31907 -r 774156afc195 main.yml --- 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 diff -r cc65e5e31907 -r 774156afc195 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