2015-10-05 21:46:36 +02:00
|
|
|
---
|
|
|
|
# Fixing all the stuff around repositories.
|
|
|
|
|
|
|
|
# Provide a clean and ordered sources.list
|
2016-09-22 00:16:49 +02:00
|
|
|
- name: Change main repositories
|
|
|
|
get_url:
|
|
|
|
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/repoconfig/sources.list"
|
2015-10-05 21:46:36 +02:00
|
|
|
dest: /etc/apt/sources.list
|
2016-10-03 21:56:18 +02:00
|
|
|
force: yes
|
2015-10-05 21:46:36 +02:00
|
|
|
|
2016-09-22 00:16:49 +02:00
|
|
|
- name: Adding additional repositories
|
|
|
|
get_url:
|
2016-09-23 00:43:11 +02:00
|
|
|
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/repoconfig/{{ item }}"
|
2016-09-22 00:16:49 +02:00
|
|
|
dest: "/etc/apt/sources.list.d/{{ item }}"
|
2016-10-03 21:56:18 +02:00
|
|
|
force: yes
|
2016-09-22 00:16:49 +02:00
|
|
|
with_items:
|
|
|
|
- ansible-ansible-trusty.list
|
|
|
|
- libreoffice-ppa-trusty.list
|
|
|
|
- bglug-trusty.list
|
2015-10-05 21:46:36 +02:00
|
|
|
|
2016-09-22 00:16:49 +02:00
|
|
|
- name: Updating package database
|
|
|
|
apt: update_cache=yes
|