7be1857fb5
Also fix a typo. Change-Id: Ie5e986eae3fb4b5c26889e4ebba194cf0fd4fd50
28 lines
683 B
YAML
28 lines
683 B
YAML
- name: Remove Rackspace APT repo
|
|
file:
|
|
path: /etc/apt/sources.list.d/ospc.list
|
|
state: absent
|
|
register: rax_apt_repo_removed
|
|
|
|
- name: Remove Rackspace signing key
|
|
when: rax_apt_repo_removed.changed
|
|
command: apt-key del 4096R/CB1EF1DB
|
|
|
|
- name: Configure apt retries
|
|
copy:
|
|
mode: 0444
|
|
src: 80retry
|
|
dest: /etc/apt/apt.conf.d/80retry
|
|
|
|
- name: Disable apt translations
|
|
copy:
|
|
mode: 0444
|
|
src: 90no-translations
|
|
dest: /etc/apt/apt.conf.d/90no-translations
|
|
|
|
- name: Replace sources.list file
|
|
copy:
|
|
src: 'sources.list.{{ ansible_facts.lsb.codename }}.{{ ansible_facts.architecture }}'
|
|
dest: /etc/apt/sources.list
|
|
notify: Update apt cache
|