Created
March 27, 2019 09:01
-
-
Save v-thomp4/9a9414baa48e328463b5c992d2a7b8ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
- name: Update WordPress config file | |
lineinfile: | |
dest=/var/www/wordpress/wp-config.php | |
regexp="{{ item.regexp }}" | |
line="{{ item.line }}" | |
with_items: | |
- {'regexp': "define\\( 'DB_NAME', '(.*?)' \\);", 'line': "define('DB_NAME', '{{ wp_mysql_db }}');"} | |
- {'regexp': "define\\( 'DB_USER', '(.*?)' \\);", 'line': "define('DB_USER', '{{ wp_mysql_user }}');"} | |
- {'regexp': "define\\( 'DB_PASSWORD', '(.*?)' \\);", 'line': "define('DB_PASSWORD', '{{ wp_mysql_password }}');"} | |
sudo: yes | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment