mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url
This commit is contained in:
@@ -103,7 +103,7 @@ def main():
|
||||
state = module.params['state']
|
||||
|
||||
repo_url = repo
|
||||
if 'ppa' in repo_url:
|
||||
if 'ppa:' in repo_url and not 'http://' in repo_url:
|
||||
# looks like ppa:nginx/stable
|
||||
repo_url = repo.split(':')[1]
|
||||
elif len(repo_url.split(' ')) > 1:
|
||||
|
||||
Reference in New Issue
Block a user