diff --git a/src/actions/ansible-repository-sync.tsx b/src/actions/ansible-repository-sync.tsx
index 105705613f..205bdf9d58 100644
--- a/src/actions/ansible-repository-sync.tsx
+++ b/src/actions/ansible-repository-sync.tsx
@@ -134,21 +134,29 @@ export const ansibleRepositorySyncAction = Action({
return t`Sync task is already queued.`;
}
- // only available on detail screen; list will have remote: string, so no .url
- if (
- remote &&
- remote.url === 'https://galaxy.ansible.com/api/' &&
- !remote.requirements_file
- ) {
+ // Remote checks only available on detail screen; list will have remote: string, so no .url
+ if (remote && remote.url === 'https://galaxy.ansible.com/api/') {
const name = remote.name;
const url = formatPath(Paths.ansibleRemoteEdit, { name });
- return (
-
- YAML requirements are required to sync from Galaxy - you can{' '}
- edit the {name} remote to add requirements.
-
- );
+ if (!remote.requirements_file) {
+ return (
+
+ YAML requirements are required to sync from Galaxy. You can{' '}
+ edit the {name} remote to add requirements.
+
+ );
+ }
+
+ if (remote.signed_only) {
+ return (
+
+ Community content will never be synced if the remote is set to only
+ sync signed content. You can{' '}
+ edit the {name} remote to change it.
+
+ );
+ }
}
return null;