17 lines
688 B
YAML
17 lines
688 B
YAML
|
---
|
||
|
- name: "Copy sample"
|
||
|
copy:
|
||
|
src: "{{ ansistrano_release_path.stdout }}/includes/sys.config.sample.php"
|
||
|
dest: "{{ ansistrano_release_path.stdout }}/includes/sys.config.php"
|
||
|
remote_src: true
|
||
|
|
||
|
- name: "Setup DB"
|
||
|
ansible.builtin.lineinfile:
|
||
|
path: "{{ ansistrano_release_path.stdout }}/includes/sys.config.php"
|
||
|
regexp: "{{ item.regex }}"
|
||
|
line: "{{ item.line }}"
|
||
|
loop:
|
||
|
- {regex: "^define\\('DB_NAME', '.*'\\);$", line: "define('DB_NAME', '{{ db_name }}');"}
|
||
|
- {regex: "^define\\('DB_USER', '.*'\\);$", line: "define('DB_USER', '{{ db_user }}');"}
|
||
|
- {regex: "^define\\('DB_PASSWORD', '.*'\\);$", line: "define('DB_PASSWORD', '{{ db_password }}');"}
|