From b53d4da47162f81db862231fefd303b3ad9f12b0 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 6 Dec 2021 14:49:42 +0000 Subject: [PATCH] Only disable the PK cache, not the service --- roles/el/tasks/packagekit.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/roles/el/tasks/packagekit.yml b/roles/el/tasks/packagekit.yml index 87a0f74..58f3920 100644 --- a/roles/el/tasks/packagekit.yml +++ b/roles/el/tasks/packagekit.yml @@ -13,13 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Disable PackageKit +- name: Disable PackageKit cache become: true - ansible.builtin.systemd: - name: packagekit.service - enabled: no - masked: yes - state: stopped + ansible.builtin.lineinfile: + path: /etc/PackageKit/PackageKit.conf + regexp: '^#?\w*KeepCache=(true|false)' + line: 'KeepCache=false' - name: Disable PackageKit offline updates become: true ansible.builtin.systemd: