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
|
@@ -7,6 +7,18 @@
|
||||
# - target: the host grouper in the inventory -- default: all
|
||||
#
|
||||
# Patch then restart a node
|
||||
#
|
||||
#
|
||||
- hosts: physical,virtual
|
||||
order: sorted
|
||||
serial: 4
|
||||
vars:
|
||||
ansible_become: yes
|
||||
ansible_become_method: sudo
|
||||
tasks:
|
||||
- package:
|
||||
name: archlinux-keyring
|
||||
state: latest
|
||||
|
||||
- hosts: virtual,geth-hubs
|
||||
order: sorted
|
||||
|
Reference in New Issue
Block a user