owncloud-ansible/owncloud

Provide example for apps config

Closed this issue · 2 comments

The documentation should include an example that shows how the expected array should be structured.

As I'm not familiar yet with this syntax, it is difficult for me to infer from the code:

loop: "{{ owncloud_apps_config | subelements('parameters') }}"

The documentation of "subelements()" isn't very clear to me as it has no examples so I tried several structures but did not manage to match whatever is expected here.

Here is my last attempt:

owncloud_apps_config:
  parameters:
    core:      
    - attribute: "umgmt_set_password"
      value: "true"
    encryption:
    - attribute: "publicShareKeyId"
      value: "xxx"
    - attribute: "recoveryKeyId"
      value: "recoveryKey_1234567"
    - attribute: "yyy"
      value: "1"

@xoxys do you have a quick example for multiple values ?