Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
supplemental
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
supplemental
Commits
2d64d3b9
Commit
2d64d3b9
authored
2 years ago
by
Thomas Schneider
Browse files
Options
Downloads
Patches
Plain Diff
branding: Split out Debian APT stuff
parent
e7133c94
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
branding/tasks/apt.yml
+42
-0
42 additions, 0 deletions
branding/tasks/apt.yml
branding/tasks/main.yml
+2
-40
2 additions, 40 deletions
branding/tasks/main.yml
with
44 additions
and
40 deletions
branding/tasks/apt.yml
0 → 100644
+
42
−
0
View file @
2d64d3b9
---
-
name
:
ensure deployment of apt repository keys
copy
:
src
:
"
{{
item
}}"
dest
:
"
/etc/apt/trusted.gpg.d/{{
item|basename
}}"
owner
:
root
group
:
root
mode
:
"
0644"
loop
:
"
{{
branding_apt_keys
}}"
when
:
branding_apt_keys is defined
notify
:
-
update apt cache
tags
:
-
branding
-
repos
-
name
:
ensure apt https transport is available
apt
:
name
:
-
apt-transport-https
-
ca-certificates
state
:
present
loop
:
"
{{
branding_apt_repos
}}"
when
:
-
branding_apt_repos is defined
-
item|truncate(5, True, '') == "https"
tags
:
-
branding
-
repos
-
name
:
ensure configuration of apt repositories
apt_repository
:
repo
:
'
deb
[arch=amd64]
{{
item
}}'
state
:
present
with_items
:
"
{{
branding_apt_repos
}}"
when
:
branding_apt_repos is defined
notify
:
-
update apt cache
tags
:
-
branding
-
repos
This diff is collapsed.
Click to expand it.
branding/tasks/main.yml
+
2
−
40
View file @
2d64d3b9
...
...
@@ -81,43 +81,5 @@
-
branding
-
tls
-
name
:
ensure deployment of apt repository keys
copy
:
src
:
"
{{
item
}}"
dest
:
"
/etc/apt/trusted.gpg.d/{{
item|basename
}}"
owner
:
root
group
:
root
mode
:
"
0644"
loop
:
"
{{
branding_apt_keys
}}"
when
:
branding_apt_keys is defined
notify
:
-
update apt cache
tags
:
-
branding
-
repos
-
name
:
ensure apt https transport is available
apt
:
name
:
-
apt-transport-https
-
ca-certificates
state
:
present
loop
:
"
{{
branding_apt_repos
}}"
when
:
-
branding_apt_repos is defined
-
item|truncate(5, True, '') == "https"
tags
:
-
branding
-
repos
-
name
:
ensure configuration of apt repositories
apt_repository
:
repo
:
'
deb
[arch=amd64]
{{
item
}}'
state
:
present
with_items
:
"
{{
branding_apt_repos
}}"
when
:
branding_apt_repos is defined
notify
:
-
update apt cache
tags
:
-
branding
-
repos
-
include_tasks
:
apt.yml
when
:
is_debian
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