28 lines
720 B
YAML
28 lines
720 B
YAML
# This playbook disables the archlinux-keyring-wkd-sync.service and timer, because they tend to fail for bad reasons.
|
|
#
|
|
---
|
|
|
|
- hosts: managed
|
|
ignore_errors: true
|
|
gather_facts: true
|
|
become: yes
|
|
|
|
tasks:
|
|
|
|
- name: Disable services & timers
|
|
when: ansible_os_family == "Archlinux"
|
|
service:
|
|
name: "{{ item }}"
|
|
state: stopped
|
|
enabled: no
|
|
loop:
|
|
- archlinux-keyring-wkd-sync.timer
|
|
- archlinux-keyring-wkd-sync.service
|
|
|
|
- name: Reset failed
|
|
when: ansible_os_family == "Archlinux"
|
|
command: "systemctl reset-failed {{ item }}"
|
|
loop:
|
|
- archlinux-keyring-wkd-sync.timer
|
|
- archlinux-keyring-wkd-sync.service
|