Skip to content

Commit

Permalink
fix trailling space in args make the config create an array instead o…
Browse files Browse the repository at this point in the history
…f string

Signed-off-by: Marc Crebassa <aalaesar@gmail.com>
  • Loading branch information
aalaesar committed Sep 12, 2024
1 parent a39b3c0 commit 68108b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: "Get the config.php content"
become: true
nextcloud.admon.run_occ:
nextcloud.admin.run_occ:
nextcloud_path: "{{ nextcloud_webroot }}"
command: config:list
register: _config_php
Expand Down
4 changes: 2 additions & 2 deletions roles/install_nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ The port of redis server. Port 0 is for socket use. Default redis port is 6379.

```yaml
nextcloud_redis_settings:
- { name: 'redis host', value: '"{{ nextcloud_redis_host }}"' }
- { name: 'redis host', value: "{{ nextcloud_redis_host }}" }
- { name: 'redis port', value: "{{ nextcloud_redis_port }}" }
- { name: 'memcache.locking', value: '\OC\Memcache\Redis' }
```
Expand Down Expand Up @@ -685,4 +685,4 @@ We encourage you to contribute to this role! Please check out the
## License
BSD
BSD
2 changes: 1 addition & 1 deletion roles/install_nextcloud/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ nextcloud_redis_host: '/var/run/redis/redis.sock'
nextcloud_redis_port: 0

nextcloud_redis_settings:
- { name: 'redis host', value: '"{{ nextcloud_redis_host }}"' }
- { name: 'redis host', value: "{{ nextcloud_redis_host }}" }
- { name: 'redis port', value: "{{ nextcloud_redis_port }}" }
- { name: 'memcache.locking', value: '\OC\Memcache\Redis' }

Expand Down
6 changes: 2 additions & 4 deletions roles/install_nextcloud/tasks/nc_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@
command: >-
config:system:set
{{ item.name }}
--value "{{ item.value }}"
{% if item.value | type_debug == 'bool' %}--type=boolean{% endif %}
--value {{ item.value }}{% if item.value | type_debug == 'bool' %} --type=boolean{% endif %}
with_items:
- "{{ nextcloud_config_settings }}"

Expand All @@ -115,8 +114,7 @@
nextcloud_path: "{{ nextcloud_webroot }}"
command: >-
config:system:set {{ item.name }}
--value "{{ item.value }}"
{% if item.value | type_debug == 'bool' %}--type=boolean{% endif %}
--value {{ item.value }}{% if item.value | type_debug == 'bool' %} --type=boolean{% endif %}
with_items:
- "{{ nextcloud_redis_settings }}"
when: (nextcloud_install_redis_server | bool)
Expand Down

0 comments on commit 68108b3

Please sign in to comment.