Skip to content

docs(roles/nextcloud): document the subkeys of the app variables correctly - #440

Merged
markuslf merged 1 commit into
mainfrom
fix/nextcloud-readme-app-subkeys
Oct 8, 2026
Merged

markuslf merged 1 commit into
mainfrom
fix/nextcloud-readme-app-subkeys

Conversation

@markuslf

@markuslf markuslf commented Oct 8, 2026

Copy link
Copy Markdown
Member

The README had the subkeys of nextcloud__apps__* and nextcloud__app_configs__* mixed up:

  • nextcloud__app_configs__* listed force and the app states (enabled, disabled, ...). It now lists the subkeys nextcloud_occ_app_config actually takes: type and state (present/absent).
  • nextcloud__apps__* claimed present/absent with a default of present. nextcloud_occ_app accepts absent, disabled, enabled and present and defaults to enabled; present installs an app without enabling it. force is documented there now.
  • The README notes that an inventory entry only overrides the subkeys it sets (combine_lod), so an app the role disables by default (activity, notifications, systemtags, ...) stays disabled unless the entry sets state: 'enabled'.
  • The example no longer uses state: 'present' for an app that should be on, nor the non-existent app weather.

Observed on a lab host deployed with setup_nextcloud (Nextcloud 35.0.1, Rocky 10): entries for activity, notifications, systemtags and circles without state left these apps disabled.

Documentation only, no change to tasks or modules.

…ectly

The README had the subkeys of nextcloud__apps__* and
nextcloud__app_configs__* mixed up: `force` and the app states were
listed under the app configs, while the apps claimed `present`/`absent`
with a default of `present`.

nextcloud_occ_app accepts `absent`, `disabled`, `enabled` and
`present`, defaults to `enabled`, and `present` installs an app
without enabling it. nextcloud_occ_app_config takes `type` and
`state` (`present`/`absent`).

Also note that combine_lod only overrides the subkeys an inventory
entry sets, so an app disabled in the role defaults stays disabled
unless the entry sets `state: 'enabled'`.
@markuslf
markuslf merged commit 08a7707 into main Oct 8, 2026
13 checks passed
@markuslf
markuslf deleted the fix/nextcloud-readme-app-subkeys branch October 8, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant