From: Matt Birkholz Date: Sat, 22 Nov 2025 18:46:50 +0000 (-0700) Subject: Fixed Kamailio dependency, Nextcloud settings task syntax. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=d2d59dc8ca663682a34efc68f6a9bda7334de352;p=Institute Fixed Kamailio dependency, Nextcloud settings task syntax. --- diff --git a/README.org b/README.org index 28f12fc..b35e1b6 100644 --- a/README.org +++ b/README.org @@ -2287,8 +2287,8 @@ not be started before the ~wg0~ device has appeared. copy: content: | [Unit] + After=wg-quick@wg0.service Requires=sys-devices-virtual-net-wg0.device - After=sys-devices-virtual-net-wg0.device dest: /etc/systemd/system/kamailio.service.d/depend.conf notify: Reload Systemd. #+END_SRC @@ -4683,11 +4683,13 @@ unedited copy of the parameters SMTP and /not/ by Sendmail nor Qmail. become: yes lineinfile: path: /var/www/nextcloud/config/config.php + regexp: "{{ item.regexp }}" + line: "{{ item.line }}" insertbefore: "^[)];" firstmatch: yes loop: - regexp: "^ *'default_phone_region' *=> *'.*', *$" - line: " 'default_phone_region' => '{{ nextcloud_phone_reg }}'," + line: " 'default_phone_region' => '{{ nextcloud_region }}'," - regexp: "^ *'maintenance_window_start' *=> " line: " 'maintenance_window_start' => 9," @@ -4695,11 +4697,11 @@ unedited copy of the parameters SMTP and /not/ by Sendmail nor Qmail. - regexp: "^ *'mail_smtpmode' *=>" line: " 'mail_smtpmode' => 'sendmail'," - regexp: "^ *'mail_sendmailmode' *=>" - - line: " 'mail_sendmailmode' => 'pipe'," + line: " 'mail_sendmailmode' => 'pipe'," - regexp: "^ *'mail_from_address' *=>" - - line: " 'mail_from_address' => 'webmaster'," + line: " 'mail_from_address' => 'webmaster'," - regexp: "^ *'mail_domain' *=>" - - line: "^ *'mail_domain' => 'core.small.private'," + line: " 'mail_domain' => 'core.small.private'," when: nextcloud.stat.exists #+END_SRC diff --git a/roles_t/core/tasks/main.yml b/roles_t/core/tasks/main.yml index 879fd0c..e96f156 100644 --- a/roles_t/core/tasks/main.yml +++ b/roles_t/core/tasks/main.yml @@ -879,11 +879,13 @@ become: yes lineinfile: path: /var/www/nextcloud/config/config.php + regexp: "{{ item.regexp }}" + line: "{{ item.line }}" insertbefore: "^[)];" firstmatch: yes loop: - regexp: "^ *'default_phone_region' *=> *'.*', *$" - line: " 'default_phone_region' => '{{ nextcloud_phone_reg }}'," + line: " 'default_phone_region' => '{{ nextcloud_region }}'," - regexp: "^ *'maintenance_window_start' *=> " line: " 'maintenance_window_start' => 9," @@ -891,11 +893,11 @@ - regexp: "^ *'mail_smtpmode' *=>" line: " 'mail_smtpmode' => 'sendmail'," - regexp: "^ *'mail_sendmailmode' *=>" - - line: " 'mail_sendmailmode' => 'pipe'," + line: " 'mail_sendmailmode' => 'pipe'," - regexp: "^ *'mail_from_address' *=>" - - line: " 'mail_from_address' => 'webmaster'," + line: " 'mail_from_address' => 'webmaster'," - regexp: "^ *'mail_domain' *=>" - - line: "^ *'mail_domain' => 'core.small.private'," + line: " 'mail_domain' => 'core.small.private'," when: nextcloud.stat.exists - name: Create /Nextcloud/dbbackup.cnf. diff --git a/roles_t/front/tasks/main.yml b/roles_t/front/tasks/main.yml index 26ce4a7..eb564b4 100644 --- a/roles_t/front/tasks/main.yml +++ b/roles_t/front/tasks/main.yml @@ -430,8 +430,8 @@ copy: content: | [Unit] + After=wg-quick@wg0.service Requires=sys-devices-virtual-net-wg0.device - After=sys-devices-virtual-net-wg0.device dest: /etc/systemd/system/kamailio.service.d/depend.conf notify: Reload Systemd.