system-config/playbooks/roles/base/repos/tasks/Debian.yaml
Monty Taylor 7be1857fb5 Move rackspace repo management to the repos role
Also fix a typo.

Change-Id: Ie5e986eae3fb4b5c26889e4ebba194cf0fd4fd50
2020-05-27 16:28:37 -05:00

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