summaryrefslogtreecommitdiffstats
path: root/compass/deploy/ansible/openstack_juno/roles/repo/tasks/main.yml
blob: 21f4ef0898fc80ab26270e8369b2c2d89451d36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: copy local sources.list
  template: src=sources.list dest=/etc/apt/sources.list backup=yes
  when: LOCAL_REPO is defined

- name: copy deb packages
  shell: cp -rf /opt/repo/pool/main/ /var/cache/apt/archive/
  ignore_errors: True

- name: add juno cloudarchive
  apt_repository: repo="{{ juno_cloud_archive }}" state=present

- name: first update pkgs
  apt: update_cache=yes