Restructuring custom role, to correctly compose apt/sources.list{,.d}.
This commit is contained in:
parent
a377486586
commit
28eb8ce2aa
@ -5,6 +5,7 @@ Unattended-Upgrade::Allowed-Origins {
|
|||||||
"${distro_id}:${distro_codename}-updates";
|
"${distro_id}:${distro_codename}-updates";
|
||||||
"${distro_id}:${distro_codename}-proposed";
|
"${distro_id}:${distro_codename}-proposed";
|
||||||
"${distro_id}:${distro_codename}-backports";
|
"${distro_id}:${distro_codename}-backports";
|
||||||
|
"LP-PPA-app-review-board:trusty";
|
||||||
"LP-PPA-libreoffice-libreoffice-5-0:trusty";
|
"LP-PPA-libreoffice-libreoffice-5-0:trusty";
|
||||||
"LP-PPA-ansible-ansible:trusty";
|
"LP-PPA-ansible-ansible:trusty";
|
||||||
"BgLUG:trusty";
|
"BgLUG:trusty";
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Adding mirrored sys42 repo
|
|
||||||
lineinfile:
|
|
||||||
dest: /etc/apt/sources.list.d/sys42.list
|
|
||||||
line: 'deb http://{{ ansible_local.domain.mirrorpath }}bglug.sys42.eu/ubuntu trusty main'
|
|
||||||
create: yes
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Reloading available packages
|
|
||||||
apt:
|
|
||||||
update_cache: yes
|
|
||||||
|
|
||||||
- name: Installing plymouth theme
|
- name: Installing plymouth theme
|
||||||
apt:
|
apt:
|
||||||
name: plymouth-theme-edubuntu-bglug
|
name: plymouth-theme-edubuntu-bglug
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
---
|
---
|
||||||
# BgLUG customization
|
# BgLUG customization
|
||||||
|
|
||||||
|
- include: repos.yml
|
||||||
|
tags:
|
||||||
|
- custom
|
||||||
|
- repos
|
||||||
|
|
||||||
- include: unattended-upgrades.yml
|
- include: unattended-upgrades.yml
|
||||||
tags:
|
tags:
|
||||||
- custom
|
- custom
|
||||||
|
27
roles/custom/tasks/repos.yml
Normal file
27
roles/custom/tasks/repos.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
# Fixing all the stuff around repositories.
|
||||||
|
|
||||||
|
# Provide a clean and ordered sources.list
|
||||||
|
- name: Replace sources.list with a clean one.
|
||||||
|
template:
|
||||||
|
src: sources.list
|
||||||
|
dest: /etc/apt/sources.list
|
||||||
|
|
||||||
|
- name: Adding Ansible repo
|
||||||
|
template:
|
||||||
|
src: ansible.list
|
||||||
|
dest: /etc/apt/sources.list.d/ansible.list
|
||||||
|
|
||||||
|
- name: Adding LibreOffice repo
|
||||||
|
template:
|
||||||
|
src: libreoffice.list
|
||||||
|
dest: /etc/apt/sources.list.d/libreoffice.list
|
||||||
|
|
||||||
|
- name: Adding BgLUG repo
|
||||||
|
template:
|
||||||
|
src: sys42.list
|
||||||
|
dest: /etc/apt/sources.list.d/sys42.list
|
||||||
|
|
||||||
|
- name: Regenerating package cache
|
||||||
|
apt: update_cache=yes
|
||||||
|
sudo: yes
|
@ -1,25 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Adding proposed sources to apt/sources.list
|
- name: Ensure needed packages are installed
|
||||||
lineinfile:
|
apt:
|
||||||
line: "{{ item }}"
|
name: "{{ item }}"
|
||||||
dest: /etc/apt/sources.list
|
state: present
|
||||||
|
sudo: yes
|
||||||
with_items:
|
with_items:
|
||||||
- "deb http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-proposed restricted main multiverse universe"
|
- unattended-upgrades
|
||||||
- "deb-src http://{{ ansible_local.domain.mirrorpath }}archive.ubuntu.com/ubuntu/ trusty-proposed restricted main multiverse universe"
|
- update-notifier-common
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: Ensure unattended-upgrades is installed
|
|
||||||
apt:
|
|
||||||
name: unattended-upgrades
|
|
||||||
state: present
|
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: Ensure update-notifier-common is installed
|
|
||||||
apt:
|
|
||||||
name: update-notifier-common
|
|
||||||
state: present
|
|
||||||
sudo: yes
|
|
||||||
|
|
||||||
- name: Configuring unattended upgrades from file
|
- name: Configuring unattended upgrades from file
|
||||||
copy:
|
copy:
|
||||||
|
2
roles/custom/templates/ansible.list
Normal file
2
roles/custom/templates/ansible.list
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
## Ansible Official PPA
|
||||||
|
deb http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/ansible/ansible/ubuntu trusty main
|
2
roles/custom/templates/libreoffice.list
Normal file
2
roles/custom/templates/libreoffice.list
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
## LibreOffice Official PPA
|
||||||
|
deb http://{{ ansible_local.domain.mirrorpath }}ppa.launchpad.net/libreoffice/libreoffice-5-0/ubuntu trusty main
|
19
roles/custom/templates/sources.list
Normal file
19
roles/custom/templates/sources.list
Normal file
@ -0,0 +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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# 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
|
2
roles/custom/templates/sys42.list
Normal file
2
roles/custom/templates/sys42.list
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# BgLUG repo @ sys42
|
||||||
|
deb http://{{ ansible_local.domain.mirrorpath }}bglug.sys42.eu/ubuntu trusty main
|
Loading…
x
Reference in New Issue
Block a user