diff --git a/lib/ansible/cli/galaxy.py b/lib/ansible/cli/galaxy.py index 3903275a2f0..716eac9616d 100644 --- a/lib/ansible/cli/galaxy.py +++ b/lib/ansible/cli/galaxy.py @@ -347,7 +347,7 @@ class GalaxyCLI(CLI): # install dependencies, if we want them if not no_deps and installed: - role_dependencies = role.metadata.get('dependencies', []) + role_dependencies = role.metadata.get('dependencies') or [] for dep in role_dependencies: self.display.debug('Installing dep %s' % dep) dep_req = RoleRequirement()