Hooks catch-up
This commit is contained in:
27
playbooks/disable-archlinux-keyring-wkd-sync.yml
Normal file
27
playbooks/disable-archlinux-keyring-wkd-sync.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user