Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
piops-roles
install_nextcloud
Commits
352df915
Commit
352df915
authored
Jun 07, 2020
by
Christophe Robillard
Browse files
fix empty test for nc apps
parent
798606cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
352df915
...
...
@@ -91,7 +91,7 @@
# do if the app is not enabled and ( (archive path is not "") or (app is disabled) )
when
:
-
item.key not in nc_available_apps.enabled
-
(item.value is not
empty
) or (item.key in nc_available_apps.disabled)
-
(item.value is not
none
) or (item.key in nc_available_apps.disabled)
with_dict
:
"
{{
nextcloud_apps
}}"
when
:
-
nextcloud_apps is defined
...
...
tasks/nc_apps.yml
View file @
352df915
...
...
@@ -13,7 +13,7 @@
owner
:
"
{{
nextcloud_websrv_user
}}"
group
:
"
{{
nextcloud_websrv_group
}}"
creates
:
"
{{
nextcloud_webroot
}}/apps/{{
nc_app_name
}}"
when
:
nc_app_cfg is not
empty
when
:
nc_app_cfg is not
none
-
name
:
"
[
App
{{
nc_app_name
}}
]
-
enable
the
application."
become_user
:
"
{{
nextcloud_websrv_user
}}"
...
...
@@ -39,7 +39,7 @@
owner
:
"
{{
nextcloud_websrv_user
}}"
group
:
"
{{
nextcloud_websrv_group
}}"
creates
:
"
{{
nextcloud_webroot
}}/apps/{{
nc_app_name
}}"
when
:
nc_app_cfg.source is not
empty
when
:
nc_app_cfg.source is not
none
-
name
:
"
[
App
{{
nc_app_name
}}
]
-
enable
the
application."
become_user
:
"
{{
nextcloud_websrv_user
}}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment