Mercurial > hg > Members > anatofuz > wordpress_ansible
view roles/install-wordpress/tasks/main.yml @ 20:8842962276a3
bug fix
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 02 Sep 2020 21:43:11 +0900 |
parents | 177c28bf6e05 |
children | 05b388a02cfc |
line wrap: on
line source
--- - name: get and unarchive source become: yes unarchive: src: https://ja.wordpress.org/latest-ja.tar.gz dest: /var/www/html remote_src: yes - name: change dir / files permission become: yes file: path=/var/www/html/wordpress owner=apache group=apache mode=0755 recurse=yes state=directory - name: cp wp-config.php become: yes command: cp '/var/www/html/wordpress/wp-config-sample.php' '/var/www/html/wordpress/wp-config.php' creates=/var/www/html/wordpress/wp-config.php - name: replace /var/www/html/wordpress/wp-config.php become: yes replace: dest=/var/www/html/wordpress/wp-config.php regexp='database_name_here' replace='wordpress' - name: replace /var/www/html/wordpress/wp-config.php become: yes replace: dest=/var/www/html/wordpress/wp-config.php regexp='username_here' replace='wordpress' - 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' notify: restart_nginx