Remove apt-cacher-ng cleanup tasks

The apt-cache was removed a long time ago and these tasks should
already have been removed in the Train release. Remove them now.
There is no change for existing deployments as these tasks are no
longer required as the apt-cache component of the repo server is already
retired.

Change-Id: I42785ee153955eb6e72bef01c26791ae8eec2087
This commit is contained in:
Jonathan Rosser 2020-05-02 16:57:05 +01:00
parent 748d86411b
commit cf53ebacbd
3 changed files with 0 additions and 56 deletions

View File

@ -53,6 +53,3 @@ repo_server_port: 8181
# This directory is used by the repo_build, and will cause problems if synced
# to repo_containers with other releases.
repo_build_global_links_dirname: links
# Set the log directory
repo_service_log_dir: /var/log/apt-cacher-ng

View File

@ -45,37 +45,3 @@
until: _restart is success
retries: 5
delay: 2
# TODO(odyssey4me):
# Remove these tasks in T. They are only present for the
# Q->R upgrade or for R->S upgrades for environments which
# were installed prior to R's release.
- name: Remove apt-cacher-ng package
package:
name: apt-cacher-ng
state: absent
purge: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
listen:
- cleanup apt-cacher-ng service
- name: Remove apt-cacher-ng data folders
file:
path: "{{ repo_service_home_folder }}/repo/{{ repo_pkg_cache_dirname | default('pkg-cache') }}"
state: absent
listen:
- cleanup apt-cacher-ng service
- name: Remove apt-cacher-ng user
user:
name: "{{ repo_pkg_cache_owner | default('apt-cacher-ng') }}"
state: absent
listen:
- cleanup apt-cacher-ng service
- name: Remove apt-cacher-ng group
group:
name: "{{ repo_pkg_cache_group | default('apt-cacher-ng') }}"
state: absent
listen:
- cleanup apt-cacher-ng service

View File

@ -22,27 +22,8 @@
- { src: "lsyncd.defaults.j2", dest: "{{ repo_lsyncd_defaults_file }}" }
notify:
- reload lsyncd
- cleanup apt-cacher-ng service
when:
- groups['repo_all'] | length > 1
tags:
- repo-lsyncd
- repo-config
# TODO(odyssey4me):
# Remove this task in T. It is only present for the
# Q->R upgrade or for R->S upgrades for environments which
# were installed prior to R's release.
# It is implemented as a handler to prevent the service
# being removed before lsync has restarted with the new
# config. This task in particular cater for when lsync
# is not used because there is only one repo container.
- name: Remove apt-cacher-ng service
command: "true"
when:
- groups['repo_all'] | length == 1
notify:
- cleanup apt-cacher-ng service
tags:
- skip_ansible_lint