Only disable the PK cache, not the service

This commit is contained in:
Anthony Rose 2021-12-06 14:49:42 +00:00
parent 2619dc0db7
commit b53d4da471

View file

@ -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: