--- - name: "Get configuration" become: yes command: chdir: "{{ compose_dir }}/nextcloud" cmd: "{{ nextcloud_config_get + _param.param }}" register: _current_param_value ignore_errors: true changed_when: false # TODO: generated config.php - name: "Set configuration" become: yes command: chdir: "{{ compose_dir }}/nextcloud" cmd: "{{ nextcloud_config_set + _param.param + ' --value=' + _param.value + ' ' + _param.options }}" when: '_param.value | string not in _current_param_value.stdout'