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
5427f4e5
Commit
5427f4e5
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Updated the README and TODO list.
- Implemented backports archive support for Debian and Ubuntu.
parent
36e777ff
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.rst
+3
-4
3 additions, 4 deletions
README.rst
tasks/backports.yml
+0
-1
0 additions, 1 deletion
tasks/backports.yml
tasks/main.yml
+1
-1
1 addition, 1 deletion
tasks/main.yml
templates/backports.j2
+3
-1
3 additions, 1 deletion
templates/backports.j2
vars/main.yml
+2
-0
2 additions, 0 deletions
vars/main.yml
with
9 additions
and
7 deletions
README.rst
+
3
−
4
View file @
5427f4e5
...
...
@@ -2,8 +2,8 @@ Ansible-common
##############
An Ansible role with common tasks that ran on all (or most) hosts.
The tls_key_path and tls_cert_path facts are added to point to
the path of the
host's key and cert.
The tls_key_path
, tls_cert_path
and tls_
ca_
cert_path facts are added to point to
the path of the
host's key and cert.
Requirements
------------
...
...
@@ -84,9 +84,8 @@ TODO
- Implement:
- add_tls_cert (Debian works, OpenBSD has no mechannism).
- debian_backports (add Ubuntu, priority support).
- collectd_agent.
- init.
- init
(via module)
.
- ldap_login (with pam_mkhomedir).
- ntp.
- mail_forward (OpenBSD support?).
...
...
This diff is collapsed.
Click to expand it.
tasks/backports.yml
+
0
−
1
View file @
5427f4e5
...
...
@@ -14,7 +14,6 @@
update_cache
:
yes
-
name
:
Add repo priority pinning
when
:
backports_priority is defined
template
:
src
:
backports.j2
dest
:
/etc/apt/preferences.d/backports
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
1
−
1
View file @
5427f4e5
...
...
@@ -9,7 +9,7 @@
when
:
ansible_os_family == 'Debian' and not common_role_finished is defined
-
include
:
backports.yml
when
:
backports|default(False) and ansible_
distribution
== 'Debian'and common_role_finished is defined
when
:
backports|default(False) and ansible_
os_family
== 'Debian'
and
not
common_role_finished is defined
-
include
:
add_repo.yml
when
:
ansible_distribution == 'Debian' and extra_repos is defined and not common_role_finished is defined
...
...
This diff is collapsed.
Click to expand it.
templates/backports.j2
+
3
−
1
View file @
5427f4e5
{# assume backports_priority is defined #}
Package: *
Pin: release a={{ ansible_distribution_release }}-backports
Pin-Priority: 500
This diff is collapsed.
Click to expand it.
vars/main.yml
+
2
−
0
View file @
5427f4e5
...
...
@@ -12,6 +12,8 @@ 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
debian_init
:
'
systemd-sysv'
:
systemd
...
...
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