16 lines
704 B
YAML
16 lines
704 B
YAML
---
|
|
- name: "Copy sample"
|
|
ansible.builtin.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 }}');"}
|