mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 16:53:11 +00:00
Add support for Debian in apt_repository
This commit is contained in:
@@ -72,7 +72,7 @@ def main():
|
||||
|
||||
cmd = '%s %s' % (add_apt_repository, repo)
|
||||
|
||||
if float(platform.dist()[1]) >= 11.10:
|
||||
if platform.dist()[0] == 'debian' or float(platform.dist()[1]) >= 11.10:
|
||||
cmd = cmd + ' -y'
|
||||
|
||||
rc, out, err = _run(cmd)
|
||||
|
||||
Reference in New Issue
Block a user