Do not use hostnames to serialize upgrade of DNS servers.

This commit is contained in:
Florian Obser 2023-02-02 13:25:45 +01:00
parent b6e43b45d8
commit 74d005b9f1

View File

@ -3,7 +3,7 @@
I'll just leave this here... I'll just leave this here...
#+begin_src yaml #+begin_src yaml
#! /usr/bin/env ansible-playbook #! /usr/bin/env ansible-playbook
- hosts: OpenBSD:!gb-lon2.tlakh.xyz:!vultr.tlakh.xyz - hosts: OpenBSD:!dns
gather_facts: False gather_facts: False
tasks: tasks:
- name: run sysupgrade - name: run sysupgrade
@ -13,8 +13,9 @@ I'll just leave this here...
async: 3600 async: 3600
poll: 0 poll: 0
- hosts: gb-lon2.tlakh.xyz:!vultr.tlakh.xyz - hosts: dns:!ansible_orchestrator
gather_facts: False gather_facts: False
serial: 1
tasks: tasks:
- name: run sysupgrade -n - name: run sysupgrade -n
ansible.builtin.command: ansible.builtin.command:
@ -38,6 +39,7 @@ I'll just leave this here...
delay: 10 delay: 10
vars: vars:
ansible_connection: local ansible_connection: local
- name: wait for DNS to come back. - name: wait for DNS to come back.
ansible.builtin.wait_for: ansible.builtin.wait_for:
state: started state: started
@ -48,7 +50,7 @@ I'll just leave this here...
ansible_connection: local ansible_connection: local
when: upgrade_pending.stat.exists when: upgrade_pending.stat.exists
- hosts: vultr.tlakh.xyz - hosts: ansible_orchestrator
gather_facts: False gather_facts: False
tasks: tasks:
- name: run sysupgrade - name: run sysupgrade