21 lines
572 B
YAML
21 lines
572 B
YAML
---
|
|
# Manage Repository changes (but only for physical machines)
|
|
|
|
- name: Change repository sources
|
|
template:
|
|
src: sources.list
|
|
dest: /etc/apt/sources.list
|
|
when: ansible_product_name != "VirtualBox"
|
|
|
|
- name: Adding/changing ansible ppa local mirror
|
|
get_url:
|
|
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-ansible-trusty.list"
|
|
dest: /etc/apt/sources.list.d/ansible-ansible-trusty.list
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
when: ansible_product_name != "VirtualBox"
|
|
|
|
- name: Updating package database
|
|
apt: update_cache=yes
|