Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
847 B
33 lines
847 B
2 years ago
|
|
||
|
- name: Create wordpress configuration file
|
||
|
copy:
|
||
|
src: /var/www/html/wordpress/wp-config-sample.php
|
||
|
dest: /var/www/html/wordpress/wp-config.php
|
||
|
remote_src: yes
|
||
|
|
||
|
- name: Wordpress conf, db name
|
||
|
replace:
|
||
|
dest: /var/www/html/wordpress/wp-config.php
|
||
|
regexp: 'database_name_here'
|
||
|
replace: '{{ DB_NAME }}'
|
||
|
|
||
|
|
||
|
- name: Wordpress conf, db username
|
||
|
replace:
|
||
|
dest: /var/www/html/wordpress/wp-config.php
|
||
|
regexp: 'username_here'
|
||
|
replace: '{{ DB_USER_NAME }}'
|
||
|
|
||
|
- name: Wordpress conf, db passwd
|
||
|
replace:
|
||
|
dest: /var/www/html/wordpress/wp-config.php
|
||
|
regexp: 'password_here'
|
||
|
replace: '{{ DB_USER_PASSWORD }}'
|
||
|
|
||
|
- name: Wordpress conf, db host
|
||
|
replace:
|
||
|
dest: /var/www/html/wordpress/wp-config.php
|
||
|
regexp: 'localhost'
|
||
|
replace: '192.168.56.54'
|
||
|
|