mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add support for Debian in apt_repository
This commit is contained in:
parent
df269c72c1
commit
3e9bcd351d
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def main():
|
||||||
|
|
||||||
cmd = '%s %s' % (add_apt_repository, repo)
|
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'
|
cmd = cmd + ' -y'
|
||||||
|
|
||||||
rc, out, err = _run(cmd)
|
rc, out, err = _run(cmd)
|
||||||
|
|
Loading…
Reference in a new issue