Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
566c1b46
Commit
566c1b46
authored
4 years ago
by
Emmanuel Cohen
Browse files
Options
Downloads
Patches
Plain Diff
Don't use apt_repo, use copy for debian repository
parent
204276ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/sysconfig/tasks/repos.yml
+14
-15
14 additions, 15 deletions
roles/sysconfig/tasks/repos.yml
with
14 additions
and
15 deletions
roles/sysconfig/tasks/repos.yml
+
14
−
15
View file @
566c1b46
...
...
@@ -5,27 +5,26 @@
-
not offline_mode | d(false)
-
ansible_distribution == 'Ubuntu'
notify
:
update cache
apt_repositor
y
:
repo
:
"
{{
item
}}"
state
:
present
loop
:
-
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }} main restricted universe multiverse
-
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-
update
s main restricted universe multiverse
-
deb {{ repos_prefix }}
archive
.ubuntu.com/ubuntu
/
{{ repos_release }}-
backports
main restricted universe multiverse
-
deb {{ repos_prefix }}security.ubuntu.com/ubuntu {{ repos_release }}-security main restricted universe multiverse
cop
y
:
dest
:
/etc/apt/sources.list
content
:
|
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }} main restricted universe multiverse
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}
-updates
main restricted universe multiverse
deb {{ repos_prefix }}archive.ubuntu.com/ubuntu/ {{ repos_release }}-
backport
s main restricted universe multiverse
deb {{ repos_prefix }}
security
.ubuntu.com/ubuntu {{ repos_release }}-
security
main restricted universe multiverse
-
name
:
debian apt repo sources list
when
:
-
not offline_mode | d(false)
-
ansible_distribution == 'Debian'
notify
:
update cache
apt_repository
:
repo
:
"
{{
item
}}"
state
:
present
loop
:
-
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }} main contrib non-free
-
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }}-updates main contrib non-free
-
deb {{ repos_prefix }}{{ repos_deb_sec }}/debian-security {{ repos_release }}/updates main contrib non-free
copy
:
dest
:
/etc/apt/sources.list
content
:
|
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }} main contrib non-free
deb {{ repos_prefix }}{{ repos_deb }}/debian {{ repos_release }}-updates main contrib non-free
deb {{ repos_prefix }}{{ repos_deb_sec }}/debian-security {{ repos_release }}/updates main contrib non-free
-
name
:
add skyreach apt repo key
when
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment