Skip to content

Commit

Permalink
Support Nextcloud migration
Browse files Browse the repository at this point in the history
  • Loading branch information
camlafit committed Sep 15, 2023
1 parent 80810ff commit 52e1fdf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/db/nextcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Connexion à la nouvelle base de données
lineinfile:
dest: "{{ path }}/config/config.php"
regexp: "{{ rule.regexp }}"
line: "{{ rule.line }}"
backrefs: yes
with_items:
- { regexp: "^\\s*\\'dbhost'\\s*=>", line: "'dbhost' => '{{ database.host }}'," }
- { regexp: "^\\s*\\'dbuser'\\s*=>", line: "'dbuser' => '{{ database.user }}'," }
- { regexp: "^\\s*\\'dbpassword'\\s*=>", line: "'dbpassword' => '{{ database.pass }}'," }
- { regexp: "^\\s*\\'dbname'\\s*=>", line: "'dbname' => '{{ database.name }}'," }
loop_control:
loop_var: rule

0 comments on commit 52e1fdf

Please sign in to comment.