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