Files
zuul-jobs/roles/configure-mirrors/tasks/mirror.yaml
David Moreau Simard 83bdedd4b2 Revert "Fix lint issue"
This also adds an exception to ansible-lint, ANSIBLE0006, because
we want to use "apt-get update" for updating the apt cache [1]

[1]: https://review.openstack.org/#/c/492716/

This reverts commit 5fe5b6ca1a.

Change-Id: Icd79198964e86c7a2c73102f3e4d845d161b924d
2017-09-07 10:29:14 -04:00

27 lines
675 B
YAML

- name: Include OS-specific variables
include_vars: "{{ ansible_distribution | lower }}.yaml"
- name: Install /etc/pip.conf configuration
become: yes
template:
dest: /etc/pip.conf
group: root
mode: 0644
owner: root
src: etc/pip.conf.j2
- name: Install .pydistutils.cfg configuration in homedir
template:
dest: ~/.pydistutils.cfg
mode: 0644
src: .pydistutils.cfg.j2
- name: Setup distro specific packaging mirrors.
include: "packages/{{ ansible_distribution | lower }}.yaml"
# Make sure OS does not have a stale package cache.
- name: Update apt cache
become: yes
command: apt-get update
when: ansible_os_family == 'Debian'