Browse Source

set timezone

master
parent
commit
b3d20f61e8
3 changed files with 9 additions and 1 deletions
  1. +2
    -0
      defaults/main.yml
  2. +6
    -0
      tasks/configure.yml
  3. +1
    -1
      templates/config.php.j2

+ 2
- 0
defaults/main.yml View File

@@ -27,3 +27,5 @@ nextcloud_server_names:
- "{{ inventory_hostname }}" - "{{ inventory_hostname }}"


nextcloud_force_downgrade: false nextcloud_force_downgrade: false

timezone: UTC

+ 6
- 0
tasks/configure.yml View File

@@ -28,6 +28,12 @@
chdir: "{{nextcloud_directory}}" chdir: "{{nextcloud_directory}}"
when: nextcloud_version is version('14.0.0','ge') when: nextcloud_version is version('14.0.0','ge')


- name: nextcloud occ config:system:set logtimezone
command: php occ config:system:set logtimezone --value="{{timezone}}"
args:
chdir: "{{nextcloud_directory}}"
when: _nextcloud_config.system.logtimezone != timezone

- name: nextcloud occ maintenance:update:htaccess - name: nextcloud occ maintenance:update:htaccess
command: php occ maintenance:update:htaccess command: php occ maintenance:update:htaccess
args: args:


+ 1
- 1
templates/config.php.j2 View File

@@ -9,7 +9,7 @@ $CONFIG = array(
'log_type' => 'file', 'log_type' => 'file',
'logfile' => '{{nextcloud_log_directory}}/nextcloud.log', 'logfile' => '{{nextcloud_log_directory}}/nextcloud.log',
'loglevel' => 2, 'loglevel' => 2,
'logtimezone' => 'UTC',
'logtimezone' => '{{timezone}}',
'appstoreenabled' => true, 'appstoreenabled' => true,
'apps_paths' => array( 'apps_paths' => array(
array( array(


Loading…
Cancel
Save