Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible
roles
packages
Commits
2b164b52
Verified
Commit
2b164b52
authored
3 years ago
by
nd
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://git-ssh.notandy.de:2222/ansible-roles/packages
parents
9fc5052d
a3ecd151
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+7
-2
7 additions, 2 deletions
tasks/main.yml
tasks/repo.yml
+2
-1
2 additions, 1 deletion
tasks/repo.yml
with
9 additions
and
3 deletions
tasks/main.yml
+
7
−
2
View file @
2b164b52
-
set_fact
:
-
name
:
filter package list
set_fact
:
pkgs
:
"
{{
packages.pkg
|
dict2items
|
rejectattr('value',
'none')
|
map(attribute='key')
|
list
}}"
-
name
:
list repositories to setup
...
...
@@ -20,13 +21,17 @@
template
:
src
:
50proxy.j2
dest
:
/etc/apt/apt.conf.d/50proxy
owner
:
root
group
:
root
mode
:
0644
when
:
apt.proxy is defined
-
name
:
setup repositories
include_tasks
:
repo.yml
with_items
:
"
{{
packages.repos
}}"
-
meta
:
flush_handlers
-
name
:
ensure handlers are flushed
meta
:
flush_handlers
-
name
:
install packages
apt
:
...
...
This diff is collapsed.
Click to expand it.
tasks/repo.yml
+
2
−
1
View file @
2b164b52
-
set_fact
:
-
name
:
filter repo list
set_fact
:
repo
:
"
{{
packages.repos[item]
}}"
-
name
:
"
setup
repo
key
for
{{
item
}}"
...
...
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