Managed different type of mirrors from domain.yml file. little changes on proxy certificate.

This commit is contained in:
Emiliano Vavassori 2015-11-05 01:44:58 +01:00
parent d4e74ce1af
commit dd4734ce4b
10 changed files with 49 additions and 44 deletions

View File

@ -3,10 +3,7 @@
# At the end of system configuration, we should have a complete
# Edubuntu system
#- include: ansible-pull.yml
# tags:
# - base
# - ansible-pull
# Requires fact execmirrorpath, already set by prereq role.
- include: apt-sources.yml
tags:

View File

@ -1,2 +1,2 @@
deb http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
# deb-src http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
deb http://{{ execmirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
# deb-src http://{{ execmirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main

View File

@ -2,55 +2,55 @@
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty universe
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty universe
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted
deb http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security universe
deb-src http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security universe
deb http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security multiverse
deb http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted
deb http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security universe
deb-src http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security universe
deb http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://{{ ansible_local.domain.mirrorpath }}archive.canonical.com/ubuntu trusty partner
# deb-src http://{{ ansible_local.domain.mirrorpath }}archive.canonical.com/ubuntu trusty partner
# deb http://{{ execmirrorpath }}archive.canonical.com/ubuntu trusty partner
# deb-src http://{{ execmirrorpath }}archive.canonical.com/ubuntu trusty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://{{ ansible_local.domain.mirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb-src http://{{ ansible_local.domain.mirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb http://{{ execmirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb-src http://{{ execmirrorpath }}extras.ubuntu.com/ubuntu trusty main

View File

@ -24,4 +24,4 @@
- name: Firefox settings to include certificate
get_url:
url: 'http://{{ ansible_local.domain.serverfqdn }}/ks/server-ca/cert8.db'
dest: /usr/lib/firefox/browser/defaults/profile
dest: /usr/lib/firefox/browser/defaults/profile/cert8.db

View File

@ -0,0 +1,2 @@
---
execmirrorpath: ""

View File

@ -1,4 +1,10 @@
---
- name: Configuring executive mirrorpath
set_fact:
execmirrorpath: "{{ ansible_local.domain.mirrorpath}}"
when: ansible_local.domain.mirror_mode == 'local' or ansible_local.domain.mirror_mode == 'nfs'
- include: prereq.yml
tags: prereq

View File

@ -1,2 +1,2 @@
## Ansible Official PPA
deb http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
deb http://{{ execmirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main

View File

@ -1,2 +1,2 @@
## LibreOffice Official PPA
deb http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/libreoffice/libreoffice-5-0/ubuntu trusty main
deb http://{{ execmirrorpath }}ppa.launchpad.net/libreoffice/libreoffice-5-0/ubuntu trusty main

View File

@ -1,19 +1,19 @@
# Base
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
# updates
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
# backports
deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://{{ execmirrorpath }}archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
# security
deb http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://{{ ansible_local.domain.mirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://{{ execmirrorpath }}security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
# extras
deb http://{{ ansible_local.domain.mirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb-src http://{{ ansible_local.domain.mirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb http://{{ execmirrorpath }}extras.ubuntu.com/ubuntu trusty main
deb-src http://{{ execmirrorpath }}extras.ubuntu.com/ubuntu trusty main

View File

@ -1,2 +1,2 @@
# BgLUG repo @ sys42
deb http://{{ ansible_local.domain.mirrorpath }}bglug.sys42.eu/ubuntu trusty main
deb http://{{ execmirrorpath }}bglug.sys42.eu/ubuntu trusty main