Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ansible
common
Commits
d2170ed3
Commit
d2170ed3
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Moved backports to a seperate role.
parent
79661a14
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.rst
+0
-1
0 additions, 1 deletion
README.rst
tasks/backports.yml
+0
-24
0 additions, 24 deletions
tasks/backports.yml
tasks/main.yml
+0
-3
0 additions, 3 deletions
tasks/main.yml
templates/backports.j2
+0
-3
0 additions, 3 deletions
templates/backports.j2
vars/main.yml
+0
-7
0 additions, 7 deletions
vars/main.yml
with
0 additions
and
38 deletions
README.rst
+
0
−
1
View file @
d2170ed3
...
...
@@ -18,7 +18,6 @@ Role Variables
::
extra_tls_certs: [] # List of filenames of TLS certs to be added.
backports: False # To enable Debian backports repos.
ssh_ca: # TBD.
syslog_server: # The address of syslog server to forward.
tls_cert: # Filename of the TLS cert for that host.
...
...
This diff is collapsed.
Click to expand it.
tasks/backports.yml
deleted
100644 → 0
+
0
−
24
View file @
79661a14
---
-
name
:
Assert
assert
:
that
:
-
ansible_os_family == 'Debian'
-
ansible_distribution_release in [ 'wheezy', 'jessie', 'trusty', 'precise', 'squeeze' ]
-
name
:
Add backports repositories
with_items
:
-
deb
-
deb-src
apt_repository
:
repo
:
'
{{
item
}}
{{
backports_repo[ansible_distribution_release]
}}'
state
:
present
update_cache
:
yes
-
name
:
Add repo priority pinning
template
:
src
:
backports.j2
dest
:
/etc/apt/preferences.d/backports
owner
:
root
group
:
root
mode
:
0o0644
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
0
−
3
View file @
d2170ed3
...
...
@@ -5,9 +5,6 @@
assert
:
that
:
ansible_os_family in [ 'Debian', 'OpenBSD' ]
-
include
:
backports.yml
when
:
backports|default(False) and ansible_os_family == 'Debian' and not common_role_finished is defined
-
include
:
tls_cert.yml
when
:
tls_cert|default(True) and not common_role_finished is defined
...
...
This diff is collapsed.
Click to expand it.
templates/backports.j2
deleted
100644 → 0
+
0
−
3
View file @
79661a14
Package: *
Pin: release a={{ ansible_distribution_release }}-backports
Pin-Priority: 500
This diff is collapsed.
Click to expand it.
vars/main.yml
+
0
−
7
View file @
d2170ed3
...
...
@@ -8,13 +8,6 @@ debian_suite:
stretch
:
testing
sid
:
unstable
backports_repo
:
squeeze
:
http://httpredir.debian.org/debian-backports squeeze-backports main
wheezy
:
http://httpredir.debian.org/debian wheezy-backports main
jessie
:
http://httpredir.debian.org/debian jessie-backports main
precise
:
http://archive.ubuntu.com/ubuntu precise-backports main universe multiverse
trusty
:
http://archive.ubuntu.com/ubuntu trusty-backports main universe multiverse
ca_store
:
OpenBSD
:
/etc/ssl/cert.pem
Debian
:
/etc/ssl/certs/ca-certificates.crt
...
...
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