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
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,"
- 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
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,"
- 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.